在运行所有fitnesse测试时,套接字关闭,但不是独立的

时间:2015-05-28 07:16:34

标签: jenkins fitnesse-slim

当我尝试进行我的fitnesse测试时,他们会无关紧要地通过。但是,当我试图立即启动所有这些时,它会冻结,在第二个套件的第三次测试中,以及jenkins(它可以超时),我收到以下错误:

17:56:05 Output stream closed unexpectedly (Stop button pressed?) [Relais brisé (pipe)]
17:56:16 SEVERE: Killing slim client as exception occurred:fitnesse.slim.SlimError: Got invalid slim header from client. Read the following: HTTP/1.1 408 Request Time-out
17:56:16 WARNING: Failed to kill SLiM client [Socket closed]
17:56:16 java.net.SocketException: Socket closed
17:56:16    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)
17:56:16    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
17:56:16    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
17:56:16    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
17:56:16    at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
17:56:16    at fitnesse.testsystems.slim.SlimCommandRunningClient.kill(SlimCommandRunningClient.java:81)
17:56:16    at fitnesse.testsystems.slim.SlimTestSystem.exceptionOccurred(SlimTestSystem.java:206)
17:56:16    at fitnesse.testsystems.slim.SlimTestSystem.processTable(SlimTestSystem.java:126)
17:56:16    at fitnesse.testsystems.slim.HtmlSlimTestSystem.processAllTablesOnPage(HtmlSlimTestSystem.java:48)
17:56:16    at fitnesse.testsystems.slim.SlimTestSystem.runTests(SlimTestSystem.java:101)
17:56:16    at fitnesse.testrunner.MultipleTestsRunner.executeTestSystemPages(MultipleTestsRunner.java:171)
17:56:16    at fitnesse.testrunner.MultipleTestsRunner.startTestSystemAndExecutePages(MultipleTestsRunner.java:89)
17:56:16    at fitnesse.testrunner.MultipleTestsRunner.internalExecuteTestPages(MultipleTestsRunner.java:77)
17:56:16    at fitnesse.testrunner.MultipleTestsRunner.executeTestPages(MultipleTestsRunner.java:63)
17:56:16    at fitnesse.responders.run.SuiteResponder.performExecution(SuiteResponder.java:306)
17:56:16    at fitnesse.responders.run.SuiteResponder.doExecuteTests(SuiteResponder.java:139)
17:56:16    at fitnesse.responders.run.SuiteResponder.doSending(SuiteResponder.java:117)
17:56:16    at fitnesse.responders.ChunkingResponder.startSending(ChunkingResponder.java:70)
17:56:16    at fitnesse.http.ChunkedResponse.sendTo(ChunkedResponse.java:25)
17:56:16    at fitnesse.FitNesseExpediter.sendResponse(FitNesseExpediter.java:102)
17:56:16    at fitnesse.FitNesseExpediter.start(FitNesseExpediter.java:52)
17:56:16    at fitnesse.FitNesseServer.serve(FitNesseServer.java:28)
17:56:16    at fitnesse.FitNesseServer.serve(FitNesseServer.java:21)
17:56:16    at fitnesse.socketservice.SocketService$ServerRunner.run(SocketService.java:122)
17:56:16    at java.lang.Thread.run(Thread.java:745)
17:56:16 SEVERE: Killing slim client as exception occurred:java.net.SocketException: Socket closed

阻止套件的测试没什么特别的,事实上它已经过去了,它单独启动时通过,而我根本没碰过它。

我之前遇到了相反的问题“单个测试不起作用,但是当你通过时立即启动所有测试”。这是由一些测试的名称引起的,而不是WikiWord。所以我现在所有测试的名字都是wikiword。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

错误是由超时异常引起的(更改了更高级别的默认值,现在可以正常工作)。我无法解释为什么通过所有测试需要更长的时间,也许是因为它更长,我开始在计算机上做其他事情,并且正在使用CPU时间和资源。