From eb8611e227bbebf2e05201418e847d169d6c3529 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Mon, 9 Sep 2024 16:30:05 +0200 Subject: [PATCH] tests(py): fix test case Apparently tests case for timeouts is now running faster and doesn't reach the timeout. --- py/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/tests/test_api.py b/py/tests/test_api.py index 5454ef20..0fb6e24d 100644 --- a/py/tests/test_api.py +++ b/py/tests/test_api.py @@ -176,7 +176,7 @@ def test_xor_key(): def test_scanner_timeout(): compiler = yara_x.Compiler() compiler.add_source( - 'rule foo {condition: for all i in (0..10000000000) : ( true )}') + 'rule foo {condition: for all i in (0..100000000000) : ( true )}') scanner = yara_x.Scanner(compiler.build()) scanner.set_timeout(1) with pytest.raises(yara_x.TimeoutError):