Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit c3086a5

Browse files
committed
Added delay to SyncronousExecutorTests.
1 parent dd2ad12 commit c3086a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

graphsdk/src/androidTest/java/com/microsoft/graph/concurrency/SynchronousExecutorTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
public class SynchronousExecutorTests extends AndroidTestCase {
1111

12-
public void testExecute() {
12+
public void testExecute() throws Exception {
1313
final AtomicBoolean success = new AtomicBoolean(false);
1414
final SimpleWaiter simpleWaiter = new SimpleWaiter();
1515
SynchronousExecutor synchronousExecutor = new SynchronousExecutor();
@@ -21,6 +21,8 @@ public void run() {
2121
}
2222
});
2323
simpleWaiter.waitForSignal();
24+
Thread.sleep(2000);
2425
assertTrue(success.get());
26+
assertEquals(0, synchronousExecutor.getActiveCount());
2527
}
2628
}

0 commit comments

Comments
 (0)