Skip to content

Commit

Permalink
make test more lenient for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Feb 1, 2025
1 parent ddc4d41 commit dcc9308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2293,10 +2293,10 @@ pub(crate) mod tests {
let dm_group = alix_filtered_groups.pop().unwrap();

let now = now_ns();
let one_second = 1_000_000_000;
let one_and_a_half_second = 1_500_000_000;
assert!(
((now - one_second)..(now + one_second)).contains(&dm_group.last_message_ns.unwrap()),
"last_message_ns {} was not within one second of current time {}",
((now - one_and_a_half_second)..(now + one_and_a_half_second)).contains(&dm_group.last_message_ns.unwrap()),
"last_message_ns {} was not within one and a half second of current time {}",
dm_group.last_message_ns.unwrap(),
now
);
Expand Down

0 comments on commit dcc9308

Please sign in to comment.