Skip to content

Commit a4ff95f

Browse files
committed
Test Flyway etter oppgradering
1 parent dbfa8bf commit a4ff95f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- ${flyway:timestamp}
2+
select 1 = 1;

dp-inntekt-api/src/test/kotlin/no/nav/dagpenger/inntekt/db/PostgresTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal class PostgresTest {
3131
fun `Migration scripts are applied successfully`() {
3232
withCleanDb {
3333
val migrations = PostgresDataSourceBuilder.runMigration()
34-
assertEquals(18, migrations, "Wrong number of migrations")
34+
assertEquals(19, migrations, "Wrong number of migrations")
3535
}
3636
}
3737

@@ -47,7 +47,7 @@ internal class PostgresTest {
4747
fun `Migration of testdata `() {
4848
withCleanDb {
4949
val migrations = PostgresDataSourceBuilder.runMigration(locations = listOf("db/migration", "db/testdata"))
50-
assertEquals(23, migrations, "Wrong number of migrations")
50+
assertEquals(24, migrations, "Wrong number of migrations")
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)