Skip to content

Commit

Permalink
tests(py): fix test case
Browse files Browse the repository at this point in the history
Apparently tests case for timeouts is now running faster and doesn't reach the timeout.
  • Loading branch information
plusvic committed Sep 9, 2024
1 parent 831db9c commit eb8611e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit eb8611e

Please sign in to comment.