Try fix random test failure
This commit is contained in:
parent
17e605e130
commit
0ea56548e4
@ -1139,9 +1139,9 @@ def test_telegram_logs(default_conf, update, mocker) -> None:
|
|||||||
context = MagicMock()
|
context = MagicMock()
|
||||||
context.args = []
|
context.args = []
|
||||||
telegram._logs(update=update, context=context)
|
telegram._logs(update=update, context=context)
|
||||||
# Called at least 3 times. Exact times will change with unrelated changes to setup messages
|
# Called at least 2 times. Exact times will change with unrelated changes to setup messages
|
||||||
# Therefore we don't test for this explicitly.
|
# Therefore we don't test for this explicitly.
|
||||||
assert msg_mock.call_count > 3
|
assert msg_mock.call_count >= 2
|
||||||
|
|
||||||
|
|
||||||
def test_edge_disabled(default_conf, update, mocker) -> None:
|
def test_edge_disabled(default_conf, update, mocker) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user