From 499f1079ef22bd5c49ad67cc5b1c5f723cb0e1cc Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Wed, 6 Dec 2023 12:38:35 +0100 Subject: [PATCH] test_waku_archive: store a message without timestamp This is needed because we have the following in waku_archive/archive.nim method validate*(validator: DefaultMessageValidator, msg: WakuMessage): ValidationResult = if msg.timestamp == 0: return ok() --- tests/waku_archive/test_waku_archive.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/waku_archive/test_waku_archive.nim b/tests/waku_archive/test_waku_archive.nim index ca0e5c2680..fca4f467d9 100644 --- a/tests/waku_archive/test_waku_archive.nim +++ b/tests/waku_archive/test_waku_archive.nim @@ -58,7 +58,7 @@ suite "Waku Archive - message handling": check: (waitFor driver.getMessagesCount()).tryGet() == 2 - test "it should not archive a message with no sender timestamp": + test "it should archive a message with no sender timestamp": ## Setup let driver = newSqliteArchiveDriver() let archive = newWakuArchive(driver) @@ -72,7 +72,7 @@ suite "Waku Archive - message handling": ## Then check: - (waitFor driver.getMessagesCount()).tryGet() == 0 + (waitFor driver.getMessagesCount()).tryGet() == 1 test "it should not archive a message with a sender time variance greater than max time variance (future)": ## Setup