Skip to content

Commit 131483e

Browse files
committed
fixing flaky test
1 parent 72497dc commit 131483e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

launchdarkly-android-client-sdk/src/androidTest/java/com/launchdarkly/sdk/android/LDClientPluginsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void pluginRegisterCalledForEachClientEnvironment() throws Exception {
8989
.logAdapter(logging.logAdapter);
9090
LDConfig config = builder.build();
9191

92-
try (LDClient ldClient = LDClient.init(application, config, ldContext, 1)) {
92+
try (LDClient ldClient = LDClient.init(application, config, ldContext, 10)) {
9393
ldClient.boolVariation("test-flag", false);
9494
assertEquals(2, testPlugin.getHooksCalls.size());
9595
assertEquals(2, testPlugin.registerCalls.size());
@@ -100,7 +100,7 @@ public void pluginRegisterCalledForEachClientEnvironment() throws Exception {
100100
assertEquals(2, testHook.beforeEvaluationCalls.size());
101101
assertEquals(2, testHook.afterEvaluationCalls.size());
102102

103-
for (Map<String, Object> hookCall: testPlugin.getHooksCalls) {
103+
for (Map<String, Object> hookCall: testPlugin.registerCalls) {
104104
LDClient instance = (LDClient) hookCall.get("client");
105105

106106
if (instance.equals(LDClient.get())) {

0 commit comments

Comments
 (0)