Skip to content

Commit 3223ef0

Browse files
Bump timeouts for TestContext
Sometimes these tests timeout in Travis CI, so let's bump the timeouts to a larger value.
1 parent 91f5bf5 commit 3223ef0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/com/linkedin/parseq/TestContext.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public Promise<String> run(final Context context) throws Exception
135135

136136
getEngine().run(task);
137137

138-
assertTrue(task.await(100, TimeUnit.MILLISECONDS));
138+
assertTrue(task.await(5, TimeUnit.SECONDS));
139139
assertEquals(value, task.get());
140140
}
141141

@@ -165,7 +165,7 @@ public Promise<String> run(final Context context) throws Exception
165165

166166
getEngine().run(task);
167167

168-
assertTrue(task.await(100, TimeUnit.MILLISECONDS));
168+
assertTrue(task.await(5, TimeUnit.SECONDS));
169169
assertEquals(value, task.get());
170170
}
171171

@@ -209,7 +209,7 @@ public Promise<String> run(final Context context) throws Exception
209209

210210
getEngine().run(task);
211211

212-
assertTrue(task.await(100, TimeUnit.MILLISECONDS));
212+
assertTrue(task.await(5, TimeUnit.SECONDS));
213213
assertEquals(successorValue, successorTask.get());
214214
assertEquals(predecessorValue, predecessorValueRef.get());
215215
}
@@ -250,7 +250,7 @@ public void run()
250250

251251
getEngine().run(task);
252252

253-
task.await();
253+
assertTrue(task.await(5, TimeUnit.SECONDS));
254254

255255
final Queue<Integer> ints = task.get();
256256
assertEquals((Integer)2, ints.poll());

0 commit comments

Comments
 (0)