You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix flaky `submitTaskFromAnotherWorkerDoesNotUseLocalThreads` test. This
test would fail about 2% of the time on my machine due to dealing with
threads. With this change, it fails less than 0.5% of the time. Tested
by running the test in a loop 1,000 times.
Copy file name to clipboardExpand all lines: firebase-crashlytics/src/androidTest/java/com/google/firebase/crashlytics/internal/CrashlyticsWorkerTest.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -385,7 +385,7 @@ public void submitTaskFromAnotherWorkerDoesNotUseLocalThreads() throws Exception
385
385
Task<Integer> otherTask =
386
386
crashlyticsWorker.submit(
387
387
() -> {
388
-
sleep(30);
388
+
sleep(300);
389
389
returnlocalExecutor.getActiveCount();
390
390
});
391
391
@@ -395,6 +395,8 @@ public void submitTaskFromAnotherWorkerDoesNotUseLocalThreads() throws Exception
0 commit comments