increase the default timeout since pinging may fail slowly
This commit is contained in:
@@ -185,9 +185,9 @@ class BrokerSlowAPI(BaseAPI):
|
||||
response = self.get("get_jfctrl_monitor", params, *args, **kwargs)
|
||||
return response.get("parameters")
|
||||
|
||||
def get_detector_pings(self, detector, *args, **kwargs):
|
||||
def get_detector_pings(self, detector, *args, timeout=30, **kwargs):
|
||||
params = {"detector_name": detector}
|
||||
response = self.get("get_detector_pings", params, *args, **kwargs)
|
||||
response = self.get("get_detector_pings", params, *args, timeout=timeout, **kwargs)
|
||||
return response.get("pings")
|
||||
|
||||
def get_detector_status(self, detector, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user