Skip to content

Commit a907738

Browse files
committed
Fix cancel test
1 parent 4c6aff6 commit a907738

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

library/src/androidTest/java/com/proxerme/library/connection/ProxerConnectionTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void testUnparsableException() throws Exception {
244244
server.takeRequest();
245245
}
246246

247-
@Test
247+
@Test(timeout = 3000)
248248
public void testCancelledException() throws Exception {
249249
final CountDownLatch lock = new CountDownLatch(1);
250250

@@ -268,8 +268,6 @@ public void onError(ProxerException exception) {
268268

269269
call.cancel();
270270
lock.await();
271-
272-
server.takeRequest();
273271
}
274272

275273
@Test(timeout = 3000)

0 commit comments

Comments
 (0)