Move the no coverage to Windows only
@@ -24,8 +24,8 @@ class PingCheck(AgentCheck):
return host, custom_tags, timeout, response_time
- def _exec_ping(self, timeout, target_host): # pragma: nocover
- if platform.system() == "Windows":
+ def _exec_ping(self, timeout, target_host):
+ if platform.system() == "Windows": # pragma: nocover
countOption = "-n"
timeoutOption = "-w"
else:
