Skip to content

Commit a22c1ff

Browse files
committed
increase timeout in compaction test
1 parent 80b1392 commit a22c1ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/github/copilot/sdk/CompactionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static void teardown() throws Exception {
5656
* compaction/should_trigger_compaction_with_low_threshold_and_emit_events
5757
*/
5858
@Test
59-
@Timeout(value = 120, unit = TimeUnit.SECONDS)
59+
@Timeout(value = 300, unit = TimeUnit.SECONDS)
6060
void testShouldTriggerCompactionWithLowThresholdAndEmitEvents() throws Exception {
6161
ctx.configureForTest("compaction", "should_trigger_compaction_with_low_threshold_and_emit_events");
6262

@@ -96,8 +96,8 @@ void testShouldTriggerCompactionWithLowThresholdAndEmitEvents() throws Exception
9696

9797
// Wait for compaction to complete - it may arrive slightly after sendAndWait
9898
// returns due to async event delivery from the CLI
99-
assertTrue(compactionCompleteLatch.await(10, TimeUnit.SECONDS),
100-
"Should have received a compaction complete event within 10 seconds");
99+
assertTrue(compactionCompleteLatch.await(30, TimeUnit.SECONDS),
100+
"Should have received a compaction complete event within 30 seconds");
101101
long compactionStartCount = events.stream().filter(e -> e instanceof SessionCompactionStartEvent).count();
102102
long compactionCompleteCount = events.stream().filter(e -> e instanceof SessionCompactionCompleteEvent)
103103
.count();

0 commit comments

Comments
 (0)