@@ -142,7 +142,7 @@ def test_redis_client_creation(self, mocker):
142142
143143 def test_uwsgi_forked_client_creation (self ):
144144 """Test client with preforked initialization."""
145- # pytest.set_trace()
145+ # Invalid API Key with preforked should exit after 3 attempts.
146146 factory = get_factory ('some_api_key' , config = {'preforkedInitialization' : True })
147147 assert isinstance (factory ._storages ['splits' ], inmemmory .InMemorySplitStorage )
148148 assert isinstance (factory ._storages ['segments' ], inmemmory .InMemorySegmentStorage )
@@ -228,9 +228,10 @@ def _split_synchronizer(self, ready_flag, some, auth_api, streaming_enabled, sdk
228228 mocker .patch ('splitio.sync.manager.Manager.__init__' , new = _split_synchronizer )
229229
230230 # Start factory and make assertions
231+ # Using invalid key should result in a timeout exception
231232 factory = get_factory ('some_api_key' )
232233 try :
233- factory .block_until_ready (1 )
234+ factory .block_until_ready (1 )
234235 except :
235236 pass
236237 assert factory .ready is False
@@ -316,7 +317,7 @@ def _split_synchronizer(self, ready_flag, some, auth_api, streaming_enabled, sdk
316317 # Start factory and make assertions
317318 factory = get_factory ('some_api_key' )
318319 try :
319- factory .block_until_ready (1 )
320+ factory .block_until_ready (1 )
320321 except :
321322 pass
322323 assert factory .ready is False
0 commit comments