Skip to content

Commit 9787f1d

Browse files
committed
test: timestamp is not strictly incremental
1 parent 361f989 commit 9787f1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/sds/src/message_channel/message_channel.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,8 @@ describe("MessageChannel", function () {
201201
});
202202
}
203203
const timestampAfter = testChannelA["lamportTimestamp"];
204-
expect(timestampAfter - timestampBefore).to.equal(
205-
BigInt(messagesB.length)
206-
);
204+
// The timestamp must increase by at leat the number of messages.
205+
expect(timestampAfter - timestampBefore >= messagesB.length).to.be.true;
207206
});
208207

209208
it("should maintain proper timestamps if all messages received", async () => {

0 commit comments

Comments
 (0)