mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Fix pagination restart issue and cover by unit test.
This commit is contained in:
committed by
Benoit Marty
parent
ba0502cb7f
commit
da22758ce3
+4
-4
@@ -11,8 +11,8 @@ import io.element.android.services.toolbox.api.systemclock.SystemClock
|
||||
|
||||
const val A_FAKE_TIMESTAMP = 123L
|
||||
|
||||
class FakeSystemClock : SystemClock {
|
||||
override fun epochMillis(): Long {
|
||||
return A_FAKE_TIMESTAMP
|
||||
}
|
||||
class FakeSystemClock(
|
||||
var epochMillisResult: Long = A_FAKE_TIMESTAMP
|
||||
) : SystemClock {
|
||||
override fun epochMillis() = epochMillisResult
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user