Skip to content

Commit e597ecd

Browse files
wait for client readyness in tests
1 parent 5e60470 commit e597ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/split/openfeature/ClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void init() {
3737
try {
3838
SplitClientConfig config = SplitClientConfig.builder().splitFile("src/test/resources/split.yaml").build();
3939
SplitClient client = SplitFactoryBuilder.build("localhost", config).client();
40-
openFeatureAPI.setProvider(new SplitProvider(client));
40+
openFeatureAPI.setProviderAndWait(new SplitProvider(client));
4141
} catch (URISyntaxException | IOException e) {
4242
System.out.println("Unexpected Exception occurred initializing Split Provider.");
4343
}

0 commit comments

Comments
 (0)