Skip to content

Commit

Permalink
chore: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Jan 15, 2024
1 parent 354a927 commit 1defdc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/atlasmigration_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestMigration_ConfigMap(t *testing.T) {
"Normal Applied Version 20230412003626 applied",
"Normal Applied Version 20230412003626 applied",
"Normal Applied Version 20230808132722 applied",
`Warning Error sql/migrate: execute: executing statement "SYNTAX ERROR" from version "20230808140359": near "SYNTAX": syntax error`,
`Warning Error sql/migrate: executing statement "SYNTAX ERROR" from version "20230808140359": near "SYNTAX": syntax error`,
}, h.events())
}

Expand Down Expand Up @@ -227,7 +227,7 @@ func TestMigration_Local(t *testing.T) {
"Normal Applied Version 20230412003626 applied",
"Normal Applied Version 20230412003626 applied",
"Normal Applied Version 20230808132722 applied",
`Warning Error sql/migrate: execute: executing statement "SYNTAX ERROR" from version "20230808140359": near "SYNTAX": syntax error`,
`Warning Error sql/migrate: executing statement "SYNTAX ERROR" from version "20230808140359": near "SYNTAX": syntax error`,
}, h.events())
}

Expand Down Expand Up @@ -293,7 +293,7 @@ func TestReconcile_BadSQL(t *testing.T) {

status = tt.status()
require.EqualValues(tt, metav1.ConditionFalse, status.Conditions[0].Status)
require.Contains(tt, status.Conditions[0].Message, "sql/migrate: execute: executing statement")
require.Contains(tt, status.Conditions[0].Message, "sql/migrate: executing statement")
}

func TestReconcile_LocalMigrationDir(t *testing.T) {
Expand Down

0 comments on commit 1defdc2

Please sign in to comment.