Skip to content

Commit e2234d0

Browse files
authored
Merge pull request #160 from copilot-community-sdk/copilot/fix-github-actions-workflow
Fix CompactionTest timeout caused by prompt mismatch with snapshot
2 parents 9640cbd + b01089b commit e2234d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ void testShouldTriggerCompactionWithLowThresholdAndEmitEvents() throws Exception
7979

8080
// Send multiple messages to fill up the context window
8181
// With such low thresholds, even a few messages should trigger compaction
82-
session.sendAndWait(
83-
new MessageOptions().setPrompt("Tell me a long story about a dragon. Be very detailed."))
84-
.get(60, TimeUnit.SECONDS);
82+
session.sendAndWait(new MessageOptions().setPrompt("Tell me a story about a dragon. Be detailed.")).get(60,
83+
TimeUnit.SECONDS);
8584
session.sendAndWait(
8685
new MessageOptions().setPrompt("Continue the story with more details about the dragon's castle."))
8786
.get(60, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)