From 2ab989b2c8b98f8e9fff3a9047b39b6dba2c4ed9 Mon Sep 17 00:00:00 2001 From: Gavin Date: Mon, 7 Oct 2024 11:34:05 -0700 Subject: [PATCH] Fix flaky tests around zip file sizes --- test/kb_quast_server_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/kb_quast_server_test.py b/test/kb_quast_server_test.py index cbf3ce2..ac982f3 100644 --- a/test/kb_quast_server_test.py +++ b/test/kb_quast_server_test.py @@ -147,7 +147,7 @@ def test_quast_min_contig_length(self): test_params = [ { 'min_contig_length': 50, - 'expected_size': 330599, + 'expected_size': 330614, 'expected_report_md5': '741b2d1dec8dbb81fe9a877c4bc1e329', 'expected_icarus_md5': '6522bf4c7a54f96b99f7097c1a6afb01' }, @@ -222,8 +222,9 @@ def test_quast_large_file_force_glimmer(self): {'path': 'data/greengenes_UnAligSeq24606_edit1.fa'}], 'make_handle': 1, 'force_glimmer': True})[0] - self.check_quast_output(ret, 350266, 'd993842bcd881592aad50a8df8925499', - '2d10706f4ecfdbbe6d5d86e8578adbfa', skip_glimmer=False) + self.check_quast_output( + ret, 350244, 'd993842bcd881592aad50a8df8925499', '2d10706f4ecfdbbe6d5d86e8578adbfa', + skip_glimmer=False, tolerance=30) # for some reason the range here is large def test_quast_from_1_wsobj(self): self.start_test()