Skip to content

Commit d57d5b4

Browse files
fix tests
1 parent 2e9b5ce commit d57d5b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/sim/lib/copilot/chat/persisted-message.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ import {
1212

1313
describe('persisted-message', () => {
1414
it('round-trips canonical tool blocks through normalizeMessage', () => {
15+
const blockTimestamp = 1_700_000_000_000
1516
const result: OrchestratorResult = {
1617
success: true,
1718
content: 'done',
1819
requestId: 'req-1',
1920
contentBlocks: [
2021
{
2122
type: 'tool_call',
22-
timestamp: Date.now(),
23+
timestamp: blockTimestamp,
2324
calledBy: 'workflow',
2425
toolCall: {
2526
id: 'tool-1',
@@ -41,6 +42,7 @@ describe('persisted-message', () => {
4142
{
4243
type: 'tool',
4344
phase: 'call',
45+
timestamp: blockTimestamp,
4446
toolCall: {
4547
id: 'tool-1',
4648
name: 'read',

0 commit comments

Comments
 (0)