Skip to content

Commit ecbe7b0

Browse files
committed
fix: add different dates to reduce risk of false positives
1 parent 91a6fc1 commit ecbe7b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/modules/resources/useAgentLogs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe("useAgentLogs", () => {
8383
const { hookResult, publisherResult, rerender } = mountHook();
8484

8585
// Verify that logs can be received after mount
86-
const initialLogs = generateMockLogs(3);
86+
const initialLogs = generateMockLogs(3, new Date("april 5, 1997"));
8787
const initialEvent = new MessageEvent<string>("message", {
8888
data: JSON.stringify(initialLogs),
8989
});
@@ -102,7 +102,7 @@ describe("useAgentLogs", () => {
102102
// Re-enable the hook (creating an entirely new connection), and send
103103
// new logs
104104
rerender({ enabled: true });
105-
const newLogs = generateMockLogs(3);
105+
const newLogs = generateMockLogs(3, new Date("october 3, 2005"));
106106
const newEvent = new MessageEvent<string>("message", {
107107
data: JSON.stringify(newLogs),
108108
});

0 commit comments

Comments
 (0)