From c42241986e9f4d9b03e18b87c7cb87cbfd95f7db Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 21 Jan 2021 19:20:38 +0100 Subject: [PATCH] further investigate random test failure --- tests/rpc/test_rpc_apiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 935f43885..f5b9a58f3 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -529,7 +529,7 @@ def test_api_logs(botclient): assert len(rc1.json()) == 2 assert 'logs' in rc1.json() # Using a fixed comparison here would make this test fail! - if rc1.json()['log_count'] == 0: + if rc1.json()['log_count'] < 5: # Help debugging random test failure print(f"rc={rc.json()}") print(f"rc1={rc1.json()}")