Skip to content

Commit 963982e

Browse files
fix unit tests : timestamp
1 parent 33534c3 commit 963982e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/replay/test/unit/coreHandlers/handleNetworkBreadcrumbs.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,13 +1453,13 @@ other-header: test`;
14531453
statusCode: 200,
14541454
},
14551455
description: url,
1456-
endTimestamp: 1580598002,
1456+
endTimestamp: (BASE_TIMESTAMP + 2000) / 1000,
14571457
op: 'resource.fetch',
1458-
startTimestamp: 1580598001,
1458+
startTimestamp: (BASE_TIMESTAMP + 1000) / 1000,
14591459
},
14601460
tag: 'performanceSpan',
14611461
},
1462-
timestamp: 1580598001,
1462+
timestamp: (BASE_TIMESTAMP + 1000) / 1000,
14631463
type: 5,
14641464
},
14651465
]);
@@ -1532,13 +1532,13 @@ other-header: test`;
15321532
statusCode: 200,
15331533
},
15341534
description: url,
1535-
endTimestamp: 1580598002,
1535+
endTimestamp: (BASE_TIMESTAMP + 2000) / 1000,
15361536
op: 'resource.xhr',
1537-
startTimestamp: 1580598001,
1537+
startTimestamp: (BASE_TIMESTAMP + 1000) / 1000,
15381538
},
15391539
tag: 'performanceSpan',
15401540
},
1541-
timestamp: 1580598001,
1541+
timestamp: (BASE_TIMESTAMP + 1000) / 1000,
15421542
type: 5,
15431543
},
15441544
]);

0 commit comments

Comments
 (0)