Skip to content

Commit 37d9770

Browse files
committed
Set autologin=True while running tests.
When autologin is set to False, the client does not attempt to re-authenticate on a 401 response and instead fails with an AuthenticationError.
1 parent 99168f6 commit 37d9770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def restartSplunk(self, timeout=240):
233233
@classmethod
234234
def setUpClass(cls):
235235
cls.opts = parse([], {}, ".env")
236-
cls.opts.kwargs.update({"retries": 3})
236+
cls.opts.kwargs.update({"retries": 3, "autologin": True})
237237
# Before we start, make sure splunk doesn't need a restart.
238238
service = client.connect(**cls.opts.kwargs)
239239
if service.restart_required:

0 commit comments

Comments
 (0)