我在Travis的网络相关测试中遇到以下错误:
Starting 7 tests on test(AVD) - 4.4.2
com.noisyninja.androidlistpoc.views.MainActivityTest > checkListCountTest[test(AVD) - 4.4.2] FAILED
android.support.test.espresso.IdlingResourceTimeoutException: Wait for [com.noisyninja.androidlistpoc.MainActivityIdlingResource:MainActivity] to become idle timed out
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
com.noisyninja.androidlistpoc.modules.NetworkModuleTest > serverCallWithSuccess[test(AVD) - 4.4.2] FAILED
java.lang.AssertionError: No values (latch = 0, values = 0, errors = 1, completions = 0)
at io.reactivex.observers.BaseTestConsumer.fail(BaseTestConsumer.java:191)
:app:connectedDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:connectedDebugAndroidTest'.
There were failing tests. See the report at: file:///home/travis/build/ir2pid/AndroidGithubPOC/app/build/reports/androidTests/connected/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
似乎网络连接是模拟器的一个问题。我如何解决这个问题,因为它在我的本地计算机上正常运行。