Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ public void testKeepOneProperty() throws Exception {
errorJob.schedule();
processEventsUntil(() -> findProgressInfoItem(errorJob) != null, 3000);
}
// Wait for KEEPONE cleanup to stabilize at exactly 1 item
processEventsUntil(() -> countBelongingProgressItems(DummyFamilyJob.class) == 1, 3000);

assertEquals("Only one finished job should be kept in view", 1,
countBelongingProgressItems(DummyFamilyJob.class));
Expand Down Expand Up @@ -254,8 +256,8 @@ public void testKeepOneProperty() throws Exception {
errorJob.schedule();
processEventsUntil(() -> findProgressInfoItem(errorJob) != null, 3000);
}
// Additional event processing to ensure all KEEPONE logic has completed
processEvents();
// Wait for KEEPONE cleanup to stabilize at exactly 1 item
processEventsUntil(() -> countBelongingProgressItems(DummyFamilyJob.class) == 1, 5000);

assertEquals("Only one finished job should be kept in view", 1,
countBelongingProgressItems(DummyFamilyJob.class));
Expand Down
Loading