Skip to content

Commit

Permalink
#18 Fixed build failure caused by TIMEOUT too small
Browse files Browse the repository at this point in the history
  • Loading branch information
MewX committed Jul 13, 2018
1 parent 1cd9729 commit 258694d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {ShadowSystemClock.class})
public class RequestQueueIntegrationTest {
private static long TIMEOUT = 1000;
private static long TIMEOUT = 2000;

private ResponseDelivery mDelivery;
@Mock private Network mMockNetwork;

@Before public void setUp() throws Exception {
@Before public void setUp() {
mDelivery = new ImmediateResponseDelivery();
initMocks(this);
}
Expand Down Expand Up @@ -156,7 +156,7 @@ public NetworkResponse answer(InvocationOnMock invocationOnMock) throws Throwabl
queue.add(request);

request.cancel();
verify(listener, timeout(100)).onRequestFinished(request);
verify(listener, timeout(TIMEOUT)).onRequestFinished(request);
queue.stop();
}

Expand Down

0 comments on commit 258694d

Please sign in to comment.