Skip to content

Commit fb7a74f

Browse files
committed
better formatting remoteconfigmanagertest
1 parent e3d7a65 commit fb7a74f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

firebase-perf/src/test/java/com/google/firebase/perf/config/RemoteConfigManagerTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import com.google.testing.timing.FakeScheduledExecutorService;
3838
import java.util.HashMap;
3939
import java.util.Map;
40-
import java.util.concurrent.ExecutorService;
4140
import java.util.concurrent.TimeUnit;
4241
import org.junit.Before;
4342
import org.junit.Test;
@@ -60,16 +59,15 @@ public final class RemoteConfigManagerTest extends FirebasePerformanceTestBase {
6059
@Mock private Provider<RemoteConfigComponent> mockFirebaseRemoteConfigProvider;
6160

6261
private DeviceCacheManager cacheManager;
63-
private ExecutorService directExecutor;
6462
private FakeScheduledExecutorService fakeExecutor;
6563

6664
@Before
6765
public void setUp() {
6866
initMocks(this);
6967

7068
fakeExecutor = new FakeScheduledExecutorService();
71-
directExecutor = MoreExecutors.newDirectExecutorService();
72-
cacheManager = new DeviceCacheManager(directExecutor);
69+
// DeviceCacheManager initialization requires immediate blocking task execution in its executor
70+
cacheManager = new DeviceCacheManager(MoreExecutors.newDirectExecutorService());
7371

7472
when(mockFirebaseRemoteConfigProvider.get()).thenReturn(mockFirebaseRemoteConfigComponent);
7573
when(mockFirebaseRemoteConfigComponent.get(FIREPERF_FRC_NAMESPACE_NAME))

0 commit comments

Comments
 (0)