mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
test: timestamp is not strictly incremental
This commit is contained in:
parent
361f9895f0
commit
9787f1d8ed
@ -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 () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user