Skip to content

Commit

Permalink
test_waku_archive: store a message without timestamp
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
Ivansete-status committed Dec 6, 2023
1 parent 9c37289 commit 499f107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/waku_archive/test_waku_archive.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 499f107

Please sign in to comment.