File tree 3 files changed +4
-3
lines changed
src/pushsource/_impl/backend
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ def _koji_session(self):
248
248
tls = self ._cache .setdefault ("tls" , threading .local ())
249
249
if not hasattr (tls , "koji_session" ):
250
250
LOG .debug ("Creating koji session: %s" , self ._url )
251
- tls .koji_session = koji .ClientSession (self ._url )
251
+ tls .koji_session = koji .ClientSession (self ._url , { "anon_retry" : True } )
252
252
return tls .koji_session
253
253
254
254
def _koji_check (self ):
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def reset(self):
21
21
self .last_url = None
22
22
self .next_build_id = 80000
23
23
24
- def session (self , url ):
24
+ def session (self , url , opts = None ):
25
25
self .last_url = url
26
26
return FakeKojiSession (self )
27
27
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ def test_koji_empty(fake_koji):
26
26
assert list (source ) == []
27
27
28
28
29
- def test_koji_connect_error ():
29
+ @patch ("time.sleep" )
30
+ def test_koji_connect_error (time_sleep ):
30
31
"""Source raises a reasonable error if server can't be contacted"""
31
32
32
33
# Note: fake_koji fixture not used here, so this will really try to connect
You can’t perform that action at this time.
0 commit comments