Skip to content

Commit

Permalink
fix: Do not quietly exit, report errors!
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-qvest-seidl committed Aug 2, 2024
1 parent cd25954 commit 0cff864
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,22 @@ func TestMain(m *testing.M) {

err := keycloakClient.DeleteRealm(testCtx, testAccRealm.Realm)
if err != nil {
println("Unable to delete realm: " + testAccRealm.Realm)
println(err)
os.Exit(1)
}

err = keycloakClient.DeleteRealm(testCtx, testAccRealmTwo.Realm)
if err != nil {
println("Unable to delete realm: " + testAccRealmTwo.Realm)
println(err)
os.Exit(1)
}

err = keycloakClient.DeleteRealm(testCtx, testAccRealmUserFederation.Realm)
if err != nil {
println("Unable to delete realm: " + testAccRealmUserFederation.Realm)
println(err)
os.Exit(1)
}

Expand Down

0 comments on commit 0cff864

Please sign in to comment.