Skip to content

Commit 5f1dae3

Browse files
committed
Fix test
1 parent 2111b46 commit 5f1dae3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/test/kotlin/com/darkrockstudios/app/securecamera/imagemanager/SecureImageRepositoryTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import org.junit.Test
2020
import org.junit.rules.TemporaryFolder
2121
import java.io.ByteArrayOutputStream
2222
import java.io.File
23+
import kotlin.time.ExperimentalTime
24+
import kotlin.time.Instant
2325

2426
@ExperimentalCoroutinesApi
2527
class SecureImageRepositoryTest {
@@ -331,6 +333,7 @@ class SecureImageRepositoryTest {
331333
assertEquals(2, count)
332334
}
333335

336+
@OptIn(ExperimentalTime::class)
334337
@Test
335338
fun `saveImage should encrypt and save the image`() = runTest {
336339
// Given
@@ -354,7 +357,7 @@ class SecureImageRepositoryTest {
354357

355358
val image = CapturedImage(
356359
sensorBitmap = mockBitmap,
357-
timestamp = 1L,
360+
timestamp = Instant.fromEpochSeconds(1L),
358361
rotationDegrees = 0
359362
)
360363

0 commit comments

Comments
 (0)