超時時間錯誤
org.junit.runners.model.TestTimedOutException: test timed out after 2000 milliseconds
請問按照JUnit課程3-4中講解的超時時間部分,進行測試后出現這個并報錯是怎么回事,怎么解決呢?
org.junit.runners.model.TestTimedOutException: test timed out after 2000 milliseconds
請問按照JUnit課程3-4中講解的超時時間部分,進行測試后出現這個并報錯是怎么回事,怎么解決呢?
2017-07-12
舉報
2018-04-26
我也報這個錯了,但是發現是運行的方法是testWhile這個的
2017-07-13
把timeout時間調大或sleep時間放小試一下。我用3000和2999測試報的也是這個錯
org.junit.runners.model.TestTimedOutException: test timed out after 3000 milliseconds
你先試一下吧