Skip to content

Commit

Permalink
Rydder opp mellom tester
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindsh committed Dec 11, 2024
1 parent 5a7007e commit 7ecc187
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package no.nav.etterlatte.statistikk.database
import io.kotest.matchers.shouldBe
import no.nav.etterlatte.statistikk.StatistikkDatabaseExtension
import no.nav.etterlatte.statistikk.domain.BehandlingResultat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.extension.ExtendWith
Expand All @@ -16,6 +17,15 @@ class RyddVedtakResultatDaoTest(
private val repo = RyddVedtakResultatDao(dataSource)
private val sakRepo = SakRepository.using(dataSource)

@AfterEach
fun afterEach() {
dataSource.connection.use { connection ->
connection
.prepareStatement("truncate table sak_rader_med_potensielt_feil_resultat")
.executeUpdate()
}
}

@Test
fun `kan hente rader med potensielt feil resultat`() {
val lagretRad =
Expand Down

0 comments on commit 7ecc187

Please sign in to comment.