File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
firebase-perf/src/test/java/com/google/firebase/perf/config Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 37
37
import com .google .testing .timing .FakeScheduledExecutorService ;
38
38
import java .util .HashMap ;
39
39
import java .util .Map ;
40
- import java .util .concurrent .ExecutorService ;
41
40
import java .util .concurrent .TimeUnit ;
42
41
import org .junit .Before ;
43
42
import org .junit .Test ;
@@ -60,16 +59,15 @@ public final class RemoteConfigManagerTest extends FirebasePerformanceTestBase {
60
59
@ Mock private Provider <RemoteConfigComponent > mockFirebaseRemoteConfigProvider ;
61
60
62
61
private DeviceCacheManager cacheManager ;
63
- private ExecutorService directExecutor ;
64
62
private FakeScheduledExecutorService fakeExecutor ;
65
63
66
64
@ Before
67
65
public void setUp () {
68
66
initMocks (this );
69
67
70
68
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 () );
73
71
74
72
when (mockFirebaseRemoteConfigProvider .get ()).thenReturn (mockFirebaseRemoteConfigComponent );
75
73
when (mockFirebaseRemoteConfigComponent .get (FIREPERF_FRC_NAMESPACE_NAME ))
You can’t perform that action at this time.
0 commit comments