MultiProcessSample in googlesamples/android-testing will crash occasionally.
And if change the private process to main process, repeat 100 times, will success.
Steps to Reproduce
run the ExampleInstrumentedTest in MultiProcessSample 100 times.
Expected Results
Test success.
Actual Results
Testing started at 21:13 ...
03/29 21:13:21: Launching ExampleInstrumentedT...
Running tests
$ adb shell am instrument -w -r -e debug false -e class 'com.example.android.testing.espresso.multiprocesssample.ExampleInstrumentedTest' com.example.android.testing.espresso.multiprocesssample.test/androidx.test.runner.AndroidJUnitRunner
Client not ready yet..
Started running tests
java.lang.IllegalStateException: Interaction response reported Status.Error, but noerror message was attached to interaction response: androidx.test.espresso.remote.InteractionResponse@8763d4a
at androidx.test.espresso.remote.EspressoRemote.reportResults(EspressoRemote.java:386)
at androidx.test.espresso.remote.EspressoRemote.initiateRemoteCall(EspressoRemote.java:278)
at androidx.test.espresso.remote.EspressoRemote$2.run(EspressoRemote.java:237)
at androidx.test.espresso.remote.EspressoRemote$3.call(EspressoRemote.java:256)
at androidx.test.espresso.remote.EspressoRemote$3.call(EspressoRemote.java:244)
at androidx.test.espresso.core.internal.deps.guava.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at androidx.test.espresso.core.internal.deps.guava.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
at androidx.test.espresso.core.internal.deps.guava.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Tests ran to completion.
AndroidX Test and Android OS Versions
AndroidX Test version as it is in MultiProcessSample of googlesamples/android-testing.
Description
MultiProcessSample in googlesamples/android-testing will crash occasionally.
And if change the private process to main process, repeat 100 times, will success.
Steps to Reproduce
run the ExampleInstrumentedTest in MultiProcessSample 100 times.
Expected Results
Test success.
Actual Results
AndroidX Test and Android OS Versions
AndroidX Test version as it is in MultiProcessSample of googlesamples/android-testing.
Android OS Version is 9.0 I use AVD test it.
Link to a public git repo demonstrating the problem:
I have commit code of repeat the test 100 times in my repo. https://github.com/shifujun/android-testing/tree/master/ui/espresso/MultiProcessSample