Skip to content

Commit

Permalink
Debugging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Oct 10, 2024
1 parent 5f42894 commit d7ca1b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/mysql/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ func TestMain(m *testing.M) {

ret := m.Run()

os.Exit(ret)
if ret != 0 {
os.Exit(ret)
} else {
fmt.Println("invalid return code received in sqlite Main")
}

}

var loggedSQL string
Expand Down
2 changes: 2 additions & 0 deletions tests/postgres/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func TestMain(m *testing.M) {

if ret != 0 {
os.Exit(ret)
} else {
fmt.Println("invalid return code received in sqlite Main")
}
}()
}
Expand Down
2 changes: 2 additions & 0 deletions tests/sqlite/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func TestMain(m *testing.M) {

if ret != 0 {
os.Exit(ret)
} else {
fmt.Println("invalid return code received in sqlite Main")
}
}

Expand Down

0 comments on commit d7ca1b5

Please sign in to comment.