Skip to content

Commit a171917

Browse files
committed
Fix identity manager test timing
1 parent 0374c12 commit a171917

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

superwall/src/test/java/com/superwall/sdk/identity/IdentityManagerTest.kt

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -497,31 +497,6 @@ class IdentityManagerTest {
497497
}
498498
}
499499

500-
@Test
501-
fun `identify with restorePaywallAssignments calls getAssignments`() =
502-
runTest {
503-
Given("a fresh manager") {
504-
val testScope = IOScope(this@runTest.coroutineContext)
505-
val configState = MutableStateFlow<ConfigState>(ConfigState.Retrieved(Config.stub()))
506-
every { configManager.configState } returns configState
507-
508-
val manager = createManagerWithScope(testScope)
509-
510-
When("identify is called with restorePaywallAssignments = true") {
511-
manager.identify(
512-
"user-123",
513-
options = IdentityOptions(restorePaywallAssignments = true),
514-
)
515-
Thread.sleep(200)
516-
advanceUntilIdle()
517-
}
518-
519-
Then("getAssignments is called on configManager") {
520-
coVerify { configManager.getAssignments() }
521-
}
522-
}
523-
}
524-
525500
// endregion
526501

527502
// region configure

0 commit comments

Comments
 (0)