Skip to content

Commit 4d7d513

Browse files
author
rsora
committed
Reverse platform if for signal value
1 parent dc90f8d commit 4d7d513

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_daemon.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_telemetry_prometheus_endpoint(daemon_runner, data_dir):
4242
assert repertory["installation"]["id"] == sample.labels["installationID"]
4343

4444
# Kill the runner's process as we finished our test (platform dependent)
45-
os_signal = signal.SIGKILL
46-
if platform.system() == "Windows":
47-
os_signal = signal.SIGTERM
45+
os_signal = signal.SIGTERM
46+
if platform.system() != "Windows":
47+
os_signal = signal.SIGKILL
4848
os.kill(daemon_runner.pid, os_signal)

0 commit comments

Comments
 (0)