test(HH-592): cover realtime timestamp boundaries (#153)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-24 11:13:53 +08:00
committed by GitHub
co-authored by rogee
parent 2c6bee2b37
commit 92ace6b041
3 changed files with 27 additions and 10 deletions
@@ -124,7 +124,7 @@ describe('ActionCableConnector - Copilot Tests', () => {
);
});
it('does not apply replayed activity timestamps', async () => {
it('does not apply replayed or 1e10-millisecond activity timestamps', async () => {
const currentMessage = {
id: 42,
conversation_id: 7,
@@ -148,7 +148,7 @@ describe('ActionCableConnector - Copilot Tests', () => {
});
await actionCable.onMessageCreated({
...currentMessage,
updated_at: '2026-08-24T01:00:00Z',
updated_at: 10_000_000_000,
conversation: { last_activity_at: 50 },
});