Skip to content

Commit b2e7d4f

Browse files
Fix datetime in tests
1 parent f6cf62a commit b2e7d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/kotlin/no/nav/syfo/testhelper/generator/DialogmoteGenerator.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import no.nav.syfo.domain.PersonIdent
55
import no.nav.syfo.testhelper.UserConstants
66
import no.nav.syfo.testhelper.UserConstants.VIRKSOMHETSNUMMER_HAS_NARMESTELEDER
77
import java.time.LocalDateTime
8+
import java.time.temporal.ChronoUnit
89
import java.util.*
910

10-
val DIALOGMOTE_TIDSPUNKT_FIXTURE = LocalDateTime.now().plusDays(30L)
11+
val DIALOGMOTE_TIDSPUNKT_FIXTURE = LocalDateTime.now().plusDays(30L).truncatedTo(ChronoUnit.MILLIS)
1112

1213
fun generateNewDialogmoteTidSted() = NewDialogmoteTidSted(
1314
sted = "This is a very lang text that has a lot of characters and describes where the meeting will take place.",

0 commit comments

Comments
 (0)