From 14de4db9faa6120515d5f63e753964f7918073af Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Tue, 6 Sep 2022 16:25:37 +0000 Subject: [PATCH] UT: Use more specific assert in test_connection_spawns_pipe --- .../network/relay/test_relay_connection_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/infection_monkey/network/relay/test_relay_connection_handler.py b/monkey/tests/unit_tests/infection_monkey/network/relay/test_relay_connection_handler.py index f82432dae..92aff10fc 100644 --- a/monkey/tests/unit_tests/infection_monkey/network/relay/test_relay_connection_handler.py +++ b/monkey/tests/unit_tests/infection_monkey/network/relay/test_relay_connection_handler.py @@ -53,7 +53,7 @@ def test_connection_spawns_pipe(pipe_spawner, relay_user_handler, data_socket): connection_handler.handle_new_connection(data_socket) - assert pipe_spawner.spawn_pipe.called + pipe_spawner.spawn_pipe.assert_called_once_with(data_socket) def test_connection_adds_user(pipe_spawner, relay_user_handler, data_socket):