test: timestamp is not strictly incremental

This commit is contained in:
fryorcraken 2025-11-18 16:35:25 -03:00
parent 361f9895f0
commit 9787f1d8ed
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -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 () => {