diff --git a/tests/smoke_test.py b/tests/smoke_test.py index fe03581..2fc6ea2 100644 --- a/tests/smoke_test.py +++ b/tests/smoke_test.py @@ -57,6 +57,7 @@ class Client: self.operator_client=Client() self.operator_client.call('/operator/login',{'email':os.environ.get('OPERATOR_EMAIL','operator@example.test'),'password':os.environ.get('OPERATOR_PASSWORD','local-operator-only')}) return self.operator_client.call(path,body,expected=expected,method=method) + reset=False for attempt in range(20): request=Request(BASE+'/api'+path,data=None if body is None else json.dumps(body).encode(), headers=headers,method=method) @@ -71,6 +72,14 @@ class Client: # an HTML page, not the API's JSON: a fast suite waits for it. if exc.code==429 and text.lstrip().startswith('