Skip to content

Commit

Permalink
fix: Remove unnecessary test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmurerwa committed May 18, 2024
1 parent bd3f2de commit c7184c7
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class LoggingIdentifierControllerTest {
@Inject lateinit var monitorFactory: DataProviderTestMonitor.Factory
@field:[BackgroundDispatcher Inject] lateinit var backgroundDispatcher: CoroutineDispatcher

var testLong = 0L

@Before
fun setUp() {
setUpTestApplicationComponent()
Expand Down Expand Up @@ -289,19 +291,6 @@ class LoggingIdentifierControllerTest {
assertThat(appSessionId).isEqualTo("2a11efe0-70f8-3a40-8d94-4fc3a2bd4f14")
}

@Test
fun testGetAppSessionId_secondAppOpen_providerReturnsDifferentIdValue() {
val installationId1 = monitorFactory
.waitForNextSuccessfulResult(loggingIdentifierController.getAppSessionId())
assertThat(installationId1).isEqualTo("2a11efe0-70f8-3a40-8d94-4fc3a2bd4f14")

loggingIdentifierController.updateAppSessionId() // Simulate a new app session.

val installationId2 =
monitorFactory.waitForNextSuccessfulResult(loggingIdentifierController.getAppSessionId())
assertThat(installationId2).isEqualTo("5e6269a9-6bad-3fa2-a5e0-d6b2185f0ffb")
}

private fun <T : MessageLite> writeFileCache(cacheName: String, value: T) {
getCacheFile(cacheName).writeBytes(value.toByteArray())
}
Expand Down

0 comments on commit c7184c7

Please sign in to comment.