commit 48ab3857f502f5bc0e68739e8a19fe9dcdca409f Author: Karsten Loesing karsten.loesing@gmx.net Date: Tue May 5 11:32:07 2020 +0200
Fix test for compressing logs during rotation.
Still part of #33396. --- onionperf/tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onionperf/tests/test_utils.py b/onionperf/tests/test_utils.py index 940e0b6..71056ff 100644 --- a/onionperf/tests/test_utils.py +++ b/onionperf/tests/test_utils.py @@ -300,7 +300,7 @@ def test_file_writable_rotate_file(): test_writable.write("onionperf") test_writable.rotate_file(datetime.datetime(2018, 11, 27, 0, 0, 0)) created_dir = os.path.join(work_dir, "log_archive") - rotated_file = os.path.join(created_dir, "logfile_2018-11-27_00:00:00") + rotated_file = os.path.join(created_dir, "logfile_2018-11-27_00:00:00.gz") assert(os.path.exists(created_dir)) assert(os.path.isdir(created_dir)) assert(os.path.exists(rotated_file))
tor-commits@lists.torproject.org