Skip to content

Commit 2eea3b6

Browse files
committed
Fix flaky JWKS tests by shadowing mainThread in ThreadSwitcherShadow
1 parent 1843b00 commit 2eea3b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

auth0/src/test/java/com/auth0/android/request/internal/ThreadSwitcherShadow.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ public ThreadSwitcherShadow() {
2626
public void backgroundThread(Runnable runnable) {
2727
executor.execute(runnable);
2828
}
29+
30+
@Implementation
31+
public void mainThread(Runnable runnable) {
32+
executor.execute(runnable);
33+
}
2934
}

0 commit comments

Comments
 (0)