Skip to content

Commit

Permalink
Make a JobsApiRequestSpec test less flaky.
Browse files Browse the repository at this point in the history
  • Loading branch information
archolewa committed Aug 31, 2016
1 parent 3bcfb56 commit efb3798
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class JobsApiRequestSpec extends Specification {
TestSubscriber<PreResponse> testSubscriber = new TestSubscriber<>()
JobsApiRequest apiRequest = new JobsApiRequest(
null,
"2",
"0",
"",
"",
uriInfo,
Expand All @@ -196,7 +196,7 @@ class JobsApiRequestSpec extends Specification {
Observable<PreResponse> preResponseObservable = apiRequest.handleBroadcastChannelNotification("ticket1")

and: "The notification is fired by the broadcastChannel after timeout"
Thread.sleep(5)
Thread.sleep(50)
broadcastChannel.publish("ticket1")

and: "we subscribe to the preResponseObservable"
Expand Down

0 comments on commit efb3798

Please sign in to comment.