mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
Merge 9787f1d8edcc159704937f56be96dc9ab66e7959 into f2ad23ad4354fb3440ca369ed91ba4d882bbacf6
This commit is contained in:
commit
90933a4ca7
@ -186,7 +186,7 @@ describe("Reliable Channel", () => {
|
||||
});
|
||||
|
||||
// TODO: https://github.com/waku-org/js-waku/issues/2648
|
||||
it.skip("Outgoing message is possibly acknowledged", async () => {
|
||||
it("Outgoing message is possibly acknowledged", async () => {
|
||||
const commonEventEmitter = new TypedEventEmitter<MockWakuEvents>();
|
||||
const mockWakuNodeAlice = new MockWakuNode(commonEventEmitter);
|
||||
const mockWakuNodeBob = new MockWakuNode(commonEventEmitter);
|
||||
|
||||
@ -187,8 +187,7 @@ describe("Reliable Channel: Encryption", () => {
|
||||
expect(messageAcknowledged).to.be.false;
|
||||
});
|
||||
|
||||
// TODO: https://github.com/waku-org/js-waku/issues/2648
|
||||
it.skip("Outgoing message is possibly acknowledged", async () => {
|
||||
it("Outgoing message is possibly acknowledged", async () => {
|
||||
const commonEventEmitter = new TypedEventEmitter<MockWakuEvents>();
|
||||
const mockWakuNodeAlice = new MockWakuNode(commonEventEmitter);
|
||||
const mockWakuNodeBob = new MockWakuNode(commonEventEmitter);
|
||||
|
||||
@ -185,8 +185,7 @@ describe("MessageChannel", function () {
|
||||
expect(timestampAfter).to.equal(timestampBefore + 1n);
|
||||
});
|
||||
|
||||
// TODO: test is failing in CI, investigate in https://github.com/waku-org/js-waku/issues/2648
|
||||
it.skip("should update lamport timestamp if greater than current timestamp and dependencies are met", async () => {
|
||||
it("should update lamport timestamp if greater than current timestamp and dependencies are met", async () => {
|
||||
const testChannelA = new MessageChannel(channelId, "alice");
|
||||
const testChannelB = new MessageChannel(channelId, "bob");
|
||||
|
||||
@ -202,13 +201,11 @@ 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;
|
||||
});
|
||||
|
||||
// TODO: test is failing in CI, investigate in https://github.com/waku-org/js-waku/issues/2648
|
||||
it.skip("should maintain proper timestamps if all messages received", async () => {
|
||||
it("should maintain proper timestamps if all messages received", async () => {
|
||||
const aTimestampBefore = channelA["lamportTimestamp"];
|
||||
let timestamp = channelB["lamportTimestamp"];
|
||||
for (const m of messagesA) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user