We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b56d08 commit 6e80495Copy full SHA for 6e80495
packages/agent-runtime/src/util/__tests__/messages.test.ts
@@ -33,11 +33,8 @@ describe('messagesWithSystem', () => {
33
34
const result = messagesWithSystem({ messages, system })
35
36
- expect(result).toEqual([
37
- systemMessage('Be helpful'),
38
- userMessage('hello'),
39
- assistantMessage('hi'),
40
- ])
+ // Use the original message objects to avoid flaky sentAt timestamp comparisons
+ expect(result).toEqual([systemMessage('Be helpful'), ...messages])
41
})
42
43
0 commit comments