You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/dd-sdk-android-flags/src/test/kotlin/com/datadog/android/flags/internal/evaluation/EvaluationsManagerTest.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -363,15 +363,14 @@ internal class EvaluationsManagerTest {
363
363
364
364
@Test
365
365
fun`M have state READY when callback invoked W updateEvaluationsForContext() { success }`() {
366
-
// Given - use a REAL FlagsStateManager to test actual behavior
366
+
// Given
367
367
val realExecutor =Executors.newSingleThreadExecutor()
368
368
val realStateManager =FlagsStateManager(
369
369
DDCoreSubscription.create(),
370
370
realExecutor,
371
371
mockInternalLogger
372
372
)
373
373
374
-
// Create EvaluationsManager with real state manager
375
374
val evaluationsManagerWithRealState =EvaluationsManager(
376
375
executorService = mockExecutorService,
377
376
internalLogger = mockInternalLogger,
@@ -389,7 +388,6 @@ internal class EvaluationsManagerTest {
389
388
390
389
val callback =object:EvaluationContextCallback {
391
390
overridefunonSuccess() {
392
-
// Capture the ACTUAL state at the moment the callback is invoked
0 commit comments