Fix test compilation issue.

This commit is contained in:
Benoit Marty 2024-09-03 10:01:38 +02:00
parent f03bd282e7
commit 951dff8951
3 changed files with 6 additions and 0 deletions

View file

@ -145,6 +145,7 @@ class DatabaseSessionStoreTest {
loginType = null,
passphrase = "aPassphrase",
sessionPath = "sessionPath",
cachePath = "cachePath",
)
val secondSessionData = SessionData(
userId = "userId",
@ -159,6 +160,7 @@ class DatabaseSessionStoreTest {
loginType = null,
passphrase = "aPassphraseAltered",
sessionPath = "sessionPath",
cachePath = "cachePath",
)
assertThat(firstSessionData.userId).isEqualTo(secondSessionData.userId)
assertThat(firstSessionData.loginTimestamp).isNotEqualTo(secondSessionData.loginTimestamp)
@ -196,6 +198,7 @@ class DatabaseSessionStoreTest {
loginType = null,
passphrase = "aPassphrase",
sessionPath = "sessionPath",
cachePath = "cachePath",
)
val secondSessionData = SessionData(
userId = "userIdUnknown",
@ -210,6 +213,7 @@ class DatabaseSessionStoreTest {
loginType = null,
passphrase = "aPassphraseAltered",
sessionPath = "sessionPath",
cachePath = "cachePath",
)
assertThat(firstSessionData.userId).isNotEqualTo(secondSessionData.userId)

View file

@ -32,4 +32,5 @@ internal fun aSessionData() = SessionData(
loginType = LoginType.UNKNOWN.name,
passphrase = null,
sessionPath = "sessionPath",
cachePath = "cachePath",
)

View file

@ -37,5 +37,6 @@ fun aSessionData(
loginType = LoginType.UNKNOWN,
passphrase = null,
sessionPath = "/a/path/to/a/session",
cachePath = "/a/path/to/a/cache",
)
}