From fd22ba326c2dab2a430d071135487af42c5f6147 Mon Sep 17 00:00:00 2001 From: Wiktor Mazur Date: Mon, 2 Mar 2020 22:00:31 +0100 Subject: [PATCH] Test cases aligned with implementation --- backend/src/game/world.rs | 2 +- backend/src/publisher.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/game/world.rs b/backend/src/game/world.rs index b16f520..8d15a0f 100644 --- a/backend/src/game/world.rs +++ b/backend/src/game/world.rs @@ -205,7 +205,7 @@ mod tests { assert!(world.transform(game_message.clone()).is_some()); assert_contains!(world.transform(game_message.clone()), "DamageDone"); - assert_contains!(world.transform(game_message.clone()), "-666"); + assert_contains!(world.transform(game_message.clone()), "666"); let target = 1; let game_message = diff --git a/backend/src/publisher.rs b/backend/src/publisher.rs index 6f0ff3a..f1e7c5c 100644 --- a/backend/src/publisher.rs +++ b/backend/src/publisher.rs @@ -37,7 +37,7 @@ mod tests { pub fn test_call_in_the_thread(subscribers: Subscribers) { thread::spawn(move || { - let mut publisher = Publisher::new(subscribers); + let _ = Publisher::new(subscribers); }); }