From 6345c3f1f5ad6cdbfcea938c19e3960a018cd790 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 10 Sep 2017 00:13:23 +0200 Subject: [PATCH] Remove test for serverstop with connected clients because it is non-trivial to implement with the new architecture and probably not worth the effort, because it basically can't happen. A warning/exception should be added instead. --- tsstats/tests/test_log.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tsstats/tests/test_log.py b/tsstats/tests/test_log.py index 716b0d8..a16ecf5 100644 --- a/tsstats/tests/test_log.py +++ b/tsstats/tests/test_log.py @@ -93,9 +93,3 @@ def test_parse_groups(): def test_parse_utf8(output): servers = parse_logs(testlog_path + '.utf8') render_servers(servers, output) - - -def test_server_stop(): - clients = list(parse_logs('tsstats/tests/res/test.log.stopped'))[0].clients - assert clients['1'].onlinetime.seconds / 60 == 20 # minutes - assert clients['2'].onlinetime.seconds / 60 == 10 # minutes