From 5a6ff42c8156678b7f27ee3cbf3a06eb764cc20d Mon Sep 17 00:00:00 2001 From: MarcSpector Date: Wed, 5 Jun 2024 20:17:03 +0300 Subject: [PATCH] fix `deserializeGameInfoMessage` test --- .../kotlin/com/faforever/commons/lobby/ServerMessageTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/faf-commons-lobby/src/test/kotlin/com/faforever/commons/lobby/ServerMessageTest.kt b/faf-commons-lobby/src/test/kotlin/com/faforever/commons/lobby/ServerMessageTest.kt index 58e93cf4..4ea53ea4 100644 --- a/faf-commons-lobby/src/test/kotlin/com/faforever/commons/lobby/ServerMessageTest.kt +++ b/faf-commons-lobby/src/test/kotlin/com/faforever/commons/lobby/ServerMessageTest.kt @@ -196,7 +196,7 @@ class ServerMessageTest { fun deserializeGameInfoMessage() { val result = objectMapper.readValue( """ - {"command":"game_info","visibility":"public","password_protected":false,"uid":13757471,"title":"Unit test","state":"closed","game_type":"custom","featured_mod":"faf","sim_mods":{},"mapname":"adaptive_archsimkats_valley.v0003","map_file_path":"maps/adaptive_archsimkats_valley.v0003.zip","host":"Brutus5000","num_players":0,"max_players":12,"launched_at":null,"rating_type":"global","rating_min":null,"rating_max":null,"enforce_rating_range":false,"teams":{}} + {"command":"game_info","visibility":"public","password_protected":false,"uid":13757471,"title":"Unit test","state":"closed","game_type":"custom","featured_mod":"faf","sim_mods":{},"mapname":"adaptive_archsimkats_valley.v0003","map_file_path":"maps/adaptive_archsimkats_valley.v0003.zip","host":"Brutus5000","num_players":0,"max_players":12,"hosted_at":"2024-02-06T12:45:50.000000010Z","launched_at":null,"rating_type":"global","rating_min":null,"rating_max":null,"enforce_rating_range":false,"teams":{}} """.trimIndent() ) @@ -216,6 +216,7 @@ class ServerMessageTest { mapOf(), "adaptive_archsimkats_valley.v0003", "maps/adaptive_archsimkats_valley.v0003.zip", + "2024-02-06T12:45:50.000000010Z", null, mapOf(), null,