File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def __init__(
141141 "If using a custom scheduler, you must specify a executor."
142142 )
143143 else :
144- if not scheduler :
144+ if not scheduler and scheduler_executor :
145145 LOGGER .warning (
146146 "scheduler_executor should only be used with a custom scheduler."
147147 )
Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ def test_multiple_instances_no_warnings_or_errors_with_different_client_configs(
706706 UnleashClient (
707707 URL , "some-probably-unique-but-different-app-name" , refresh_interval = "60"
708708 )
709- assert not all (
709+ assert not any (
710710 ["Multiple instances has been disabled" in r .msg for r in caplog .records ]
711711 )
712712
@@ -722,7 +722,7 @@ def test_multiple_instances_are_unique_on_api_key(caplog):
722722 "some-probably-unique-app-name" ,
723723 custom_headers = {"Authorization" : "hamsters" },
724724 )
725- assert not all (
725+ assert not any (
726726 ["Multiple instances has been disabled" in r .msg for r in caplog .records ]
727727 )
728728
You can’t perform that action at this time.
0 commit comments