Skip to content

Commit 111b3cc

Browse files
committed
Fix flaky inference decorator tests (timing sensitive test exposed on windows)
1 parent 44837bc commit 111b3cc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_context_manager_measures_duration(self, publish_spy):
111111
time.sleep(0.01)
112112

113113
event = publish_spy.events[0]
114-
assert event["inference"]["duration_ms"] >= 10
114+
assert event["inference"]["duration_ms"] > 0
115115

116116
def test_context_manager_default_modality(self, publish_spy):
117117
handle = make_handle(publish_spy)

wildedge/runtime/bootstrap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
from wildedge.integrations.registry import INTEGRATIONS_BY_NAME, supported_integrations
1919
from wildedge.settings import read_runtime_env
2020

21-
SUPPORTED_SIGNALS = [signal.SIGINT, signal.SIGTERM]
21+
SUPPORTED_SIGNALS = [signal.SIGINT]
22+
if platform.system() != "Windows":
23+
SUPPORTED_SIGNALS.append(signal.SIGTERM)
2224
STATUS_OK_PATCHED = "OK_PATCHED"
2325
STATUS_OK_NOOP = "OK_NOOP"
2426
STATUS_SKIP_MISSING_DEP = "SKIP_MISSING_DEP"

0 commit comments

Comments
 (0)