0
我正在使用Apache FlexUnit 4.1和Ant爲我的AS3應用程序運行我的單元測試。這是我的螞蟻設置:https://gist.github.com/anonymous/9329872。Apache FlexUnit套接字超時
測試正確執行,但螞蟻進程不會停止,並顯示錯誤:
Buildfile: /Users/ymichel/FlashApp/UnitTest/build.xml
test:
[mxmlc] Loading configuration file /Users/ymichel/Packages/flex-sdk/frameworks/flex-config.xml
[mxmlc] /Users/ymichel/FlashApp/UnitTest/build/player-test.swf (72863 bytes)
BUILD FAILED
/Users/ymichel/FlashApp/UnitTest/build.xml:37: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: Socket timeout waiting for flexunit report
at org.flexunit.ant.FlexUnitSocketServer.start(Unknown Source)
at org.flexunit.ant.FlexUnitSocketThread.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:439)
at java.net.ServerSocket.implAccept(ServerSocket.java:468)
at java.net.ServerSocket.accept(ServerSocket.java:436)
at org.flexunit.ant.FlexUnitSocketServer.openClientSocket(Unknown Source)
... 7 more
Total time: 1 minute 3 seconds
我可能是地球上最大的菜鳥,但我完全無法說爲什麼...請幫助我:(