Skip to content

Commit

Permalink
revert back to 2s sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal Al committed Sep 5, 2024
1 parent bcd9ac8 commit 62d8e43
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions client/src/test/java/io/split/client/SplitFactoryImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,9 @@ public void testFactoryConsumerInstantiationRetryReadiness() throws Exception {
assertNotNull(splitFactory.client());
assertNotNull(splitFactory.manager());
Thread.sleep(2000);
await().atMost(3, TimeUnit.SECONDS).until(didTheThing(userStorageWrapper));
Mockito.verify(userStorageWrapper, Mockito.times(2)).connect();
}

private Callable<Boolean> didTheThing(UserStorageWrapper userStorageWrapper) {
return new Callable<Boolean>() {
public Boolean call() throws Exception {
Thread.sleep(1000);
return true;
}
};
}

@Test
public void testFactoryConsumerDestroy() throws NoSuchFieldException, URISyntaxException, IllegalAccessException {
CustomStorageWrapper customStorageWrapper = Mockito.mock(CustomStorageWrapper.class);
Expand Down

0 comments on commit 62d8e43

Please sign in to comment.