Skip to content

Commit cd2f4b2

Browse files
committed
wait for factory to be ready in localhost tests
1 parent e91e795 commit cd2f4b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/test_client_e2e.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ def test_localhost_e2e(self):
542542
"""Instantiate a client with a YAML file and issue get_treatment() calls."""
543543
filename = os.path.join(os.path.dirname(__file__), 'files', 'file2.yaml')
544544
factory = get_factory('localhost', config={'splitFile': filename})
545+
factory.block_until_ready()
545546
client = factory.client()
546547
assert client.get_treatment_with_config('key', 'my_feature') == ('on', '{"desc" : "this applies only to ON treatment"}')
547548
assert client.get_treatment_with_config('only_key', 'my_feature') == (

0 commit comments

Comments
 (0)