Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions cmd/apply/apply_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ func TestMain(m *testing.M) {
sharedEmbeddedPG = testutil.SetupPostgres(nil)
defer sharedEmbeddedPG.Stop()

// Run tests
code := m.Run()

// Exit with test result code
os.Exit(code)
m.Run()
}

// TestApplyCommand_TransactionRollback verifies that the apply command uses proper
Expand Down
6 changes: 1 addition & 5 deletions cmd/migrate_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ func TestMain(m *testing.M) {
sharedEmbeddedPG = testutil.SetupPostgres(nil)
defer sharedEmbeddedPG.Stop()

// Run tests
code := m.Run()

// Exit with test result code
os.Exit(code)
m.Run()
}

// TestPlanAndApply tests the complete CLI (plan and apply) workflow using test cases
Expand Down
6 changes: 1 addition & 5 deletions internal/diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ func TestMain(m *testing.M) {
sharedTestPostgres = testutil.SetupPostgres(nil)
defer sharedTestPostgres.Stop()

// Run tests
code := m.Run()

// Exit with test result code
os.Exit(code)
m.Run()
}

// buildSQLFromSteps builds a SQL string from collected plan diffs
Expand Down
6 changes: 1 addition & 5 deletions internal/plan/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ func TestMain(m *testing.M) {
sharedTestPostgres = testutil.SetupPostgres(nil)
defer sharedTestPostgres.Stop()

// Run tests
code := m.Run()

// Exit with test result code
os.Exit(code)
m.Run()
}

// discoverTestDataVersions discovers available test data versions in the testdata directory
Expand Down
Loading