Skip to content

Commit d84f469

Browse files
Try robustify test (#569)
1 parent 444e4bb commit d84f469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/kotlin/no/nav/syfo/dialogmote/api/v2/PostDialogmoteTidStedApiV2Spek.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import no.nav.syfo.testhelper.mock.oppfolgingstilfellePersonDTO
3131
import org.amshove.kluent.*
3232
import org.spekframework.spek2.Spek
3333
import org.spekframework.spek2.style.specification.describe
34+
import java.time.temporal.ChronoUnit
3435
import java.util.*
3536

3637
class PostDialogmoteTidStedApiV2Spek : Spek({
@@ -235,7 +236,7 @@ class PostDialogmoteTidStedApiV2Spek : Spek({
235236

236237
val urlMoteUUIDPostTidSted =
237238
"$dialogmoteApiV2Basepath/$createdDialogmoteUUID$dialogmoteApiMoteTidStedPath"
238-
val newDialogmoteTid = newDialogmoteDTO.tidSted.tid.plusDays(1)
239+
val newDialogmoteTid = newDialogmoteDTO.tidSted.tid.plusDays(1).truncatedTo(ChronoUnit.MILLIS)
239240
val newDialogmoteTidSted = EndreTidStedDialogmoteDTO(
240241
sted = "Et annet sted",
241242
tid = newDialogmoteTid,

0 commit comments

Comments
 (0)