Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/test/java/io/getstream/chat/java/TaskStatusTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ void whenTaskHasBeenExecuted_thenGetItById() {
var cids = List.of(ch1.getCId(), ch2.getCId());
var taskId = Channel.deleteMany(cids).request().getTaskId();
// Shared CI test app: asynq queue can be backed up under load — the
// default 5s waitFor is routinely too short. 5 minutes leaves real
// headroom without masking a stuck task.
// default 5s waitFor is routinely too short, and even the bumped 5
// minute budget from #256 was timing out in recent runs. 10 minutes
// leaves real headroom without masking a stuck task.
waitFor(
() -> {
var taskStatusResponse =
Assertions.assertDoesNotThrow(() -> TaskStatus.get(taskId).request());
return "completed".equals(taskStatusResponse.getStatus());
},
1000L,
300000L);
600000L);
});
}
}
Loading