From 484eab9ebed310eb14b19c4ed48a96cb0e096196 Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Thu, 26 Dec 2024 08:43:55 -0500 Subject: [PATCH] Fix failing unittest --- .../tasks/utasks/corpus_pruning_task_test.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/clusterfuzz/_internal/tests/core/bot/tasks/utasks/corpus_pruning_task_test.py b/src/clusterfuzz/_internal/tests/core/bot/tasks/utasks/corpus_pruning_task_test.py index d6a2186046..d0177b6d89 100644 --- a/src/clusterfuzz/_internal/tests/core/bot/tasks/utasks/corpus_pruning_task_test.py +++ b/src/clusterfuzz/_internal/tests/core/bot/tasks/utasks/corpus_pruning_task_test.py @@ -234,14 +234,15 @@ def test_prune(self): '6fa8c57336628a7d733f684dc9404fbd09020543', ], corpus) - testcases = list(data_types.Testcase.query()) - self.assertEqual(1, len(testcases)) - self.assertEqual('Null-dereference WRITE', testcases[0].crash_type) - self.assertEqual('Foo\ntest_fuzzer.cc\n', testcases[0].crash_state) - self.assertEqual(1337, testcases[0].crash_revision) - self.assertEqual('test_fuzzer', - testcases[0].get_metadata('fuzzer_binary_name')) - self.assertEqual('label1,label2', testcases[0].get_metadata('issue_labels')) + # TODO(metzman): Re-enable this when we re-enable corpus crash reporting. + # testcases = list(data_types.Testcase.query()) + # self.assertEqual(1, len(testcases)) + # self.assertEqual('Null-dereference WRITE', testcases[0].crash_type) + # self.assertEqual('Foo\ntest_fuzzer.cc\n', testcases[0].crash_state) + # self.assertEqual(1337, testcases[0].crash_revision) + # self.assertEqual('test_fuzzer', + # testcases[0].get_metadata('fuzzer_binary_name')) + # self.assertEqual('label1,label2', testcases[0].get_metadata('issue_labels')) today = datetime.datetime.utcnow().date() # get_coverage_information on test_fuzzer rather than libFuzzer_test_fuzzer