From 9787f1d8edcc159704937f56be96dc9ab66e7959 Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Tue, 18 Nov 2025 16:35:25 -0300 Subject: [PATCH] test: timestamp is not strictly incremental --- packages/sds/src/message_channel/message_channel.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/sds/src/message_channel/message_channel.spec.ts b/packages/sds/src/message_channel/message_channel.spec.ts index 4108c5a271..67ce043722 100644 --- a/packages/sds/src/message_channel/message_channel.spec.ts +++ b/packages/sds/src/message_channel/message_channel.spec.ts @@ -201,9 +201,8 @@ describe("MessageChannel", function () { }); } const timestampAfter = testChannelA["lamportTimestamp"]; - expect(timestampAfter - timestampBefore).to.equal( - BigInt(messagesB.length) - ); + // The timestamp must increase by at leat the number of messages. + expect(timestampAfter - timestampBefore >= messagesB.length).to.be.true; }); it("should maintain proper timestamps if all messages received", async () => {