mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix test compilation issue.
This commit is contained in:
+4
@@ -145,6 +145,7 @@ class DatabaseSessionStoreTest {
|
|||||||
loginType = null,
|
loginType = null,
|
||||||
passphrase = "aPassphrase",
|
passphrase = "aPassphrase",
|
||||||
sessionPath = "sessionPath",
|
sessionPath = "sessionPath",
|
||||||
|
cachePath = "cachePath",
|
||||||
)
|
)
|
||||||
val secondSessionData = SessionData(
|
val secondSessionData = SessionData(
|
||||||
userId = "userId",
|
userId = "userId",
|
||||||
@@ -159,6 +160,7 @@ class DatabaseSessionStoreTest {
|
|||||||
loginType = null,
|
loginType = null,
|
||||||
passphrase = "aPassphraseAltered",
|
passphrase = "aPassphraseAltered",
|
||||||
sessionPath = "sessionPath",
|
sessionPath = "sessionPath",
|
||||||
|
cachePath = "cachePath",
|
||||||
)
|
)
|
||||||
assertThat(firstSessionData.userId).isEqualTo(secondSessionData.userId)
|
assertThat(firstSessionData.userId).isEqualTo(secondSessionData.userId)
|
||||||
assertThat(firstSessionData.loginTimestamp).isNotEqualTo(secondSessionData.loginTimestamp)
|
assertThat(firstSessionData.loginTimestamp).isNotEqualTo(secondSessionData.loginTimestamp)
|
||||||
@@ -196,6 +198,7 @@ class DatabaseSessionStoreTest {
|
|||||||
loginType = null,
|
loginType = null,
|
||||||
passphrase = "aPassphrase",
|
passphrase = "aPassphrase",
|
||||||
sessionPath = "sessionPath",
|
sessionPath = "sessionPath",
|
||||||
|
cachePath = "cachePath",
|
||||||
)
|
)
|
||||||
val secondSessionData = SessionData(
|
val secondSessionData = SessionData(
|
||||||
userId = "userIdUnknown",
|
userId = "userIdUnknown",
|
||||||
@@ -210,6 +213,7 @@ class DatabaseSessionStoreTest {
|
|||||||
loginType = null,
|
loginType = null,
|
||||||
passphrase = "aPassphraseAltered",
|
passphrase = "aPassphraseAltered",
|
||||||
sessionPath = "sessionPath",
|
sessionPath = "sessionPath",
|
||||||
|
cachePath = "cachePath",
|
||||||
)
|
)
|
||||||
assertThat(firstSessionData.userId).isNotEqualTo(secondSessionData.userId)
|
assertThat(firstSessionData.userId).isNotEqualTo(secondSessionData.userId)
|
||||||
|
|
||||||
|
|||||||
+1
@@ -32,4 +32,5 @@ internal fun aSessionData() = SessionData(
|
|||||||
loginType = LoginType.UNKNOWN.name,
|
loginType = LoginType.UNKNOWN.name,
|
||||||
passphrase = null,
|
passphrase = null,
|
||||||
sessionPath = "sessionPath",
|
sessionPath = "sessionPath",
|
||||||
|
cachePath = "cachePath",
|
||||||
)
|
)
|
||||||
|
|||||||
+1
@@ -37,5 +37,6 @@ fun aSessionData(
|
|||||||
loginType = LoginType.UNKNOWN,
|
loginType = LoginType.UNKNOWN,
|
||||||
passphrase = null,
|
passphrase = null,
|
||||||
sessionPath = "/a/path/to/a/session",
|
sessionPath = "/a/path/to/a/session",
|
||||||
|
cachePath = "/a/path/to/a/cache",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user