Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
fix test concurrency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
space-pope committed Jun 15, 2020
1 parent 68e84f8 commit 8981d1c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ public void testContextManagement() throws Exception {
transact(false);
assertEquals(SpeechContext.Event.ACTIVATE, this.events.get(0));
assertTrue(pipeline.getContext().isActive());
this.events.clear();
transact(false);
assertEquals(SpeechContext.Event.DEACTIVATE, this.events.get(0));
assertFalse(pipeline.getContext().isActive());
Expand All @@ -217,7 +216,7 @@ private void transact(boolean managed) throws Exception {
Input.send();
if (!managed) {
while (this.events.isEmpty()) {
Thread.sleep(0);
Thread.sleep(1);
}
}
}
Expand Down

0 comments on commit 8981d1c

Please sign in to comment.