File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ class TestOptionalRetry(unittest.TestCase):
183183 def test_optional_retry (self ):
184184 opts = testlib .parse ([], {}, ".env" )
185185 kwargs = opts .kwargs .copy ()
186- kwargs .update ({'retries' : 5 , 'retryBackoff' : 5 })
186+ kwargs .update ({'retries' : 5 })
187187 self .service = client .connect (** kwargs )
188188 self .service .restart (timeout = 10 ) # timeout value kept lower than actual time needed for Splunk to restart
189189 self .assertEqual (self .service .get ("/services" ).status , 200 )
Original file line number Diff line number Diff line change @@ -238,15 +238,15 @@ def restartSplunk(self, timeout=240):
238238 @classmethod
239239 def setUpClass (cls ):
240240 cls .opts = parse ([], {}, ".env" )
241-
241+ cls . opts . kwargs . update ({ 'retries' : 5 })
242242 # Before we start, make sure splunk doesn't need a restart.
243- service = client .connect (retries = 5 , ** cls .opts .kwargs )
243+ service = client .connect (** cls .opts .kwargs )
244244 if service .restart_required :
245245 service .restart (timeout = 120 )
246246
247247 def setUp (self ):
248248 unittest .TestCase .setUp (self )
249- self .service = client .connect (retries = 5 , ** self .opts .kwargs )
249+ self .service = client .connect (** self .opts .kwargs )
250250 # If Splunk is in a state requiring restart, go ahead
251251 # and restart. That way we'll be sane for the rest of
252252 # the test.
You can’t perform that action at this time.
0 commit comments