diff --git a/internal/api/application_test.go b/internal/api/application_test.go index eefaf53..600b6e8 100644 --- a/internal/api/application_test.go +++ b/internal/api/application_test.go @@ -93,7 +93,7 @@ func TestApi_RegisterApplicationWithoutUser(t *testing.T) { reqWoUser := tests.Request{Name: "Invalid JSON Data", Method: "POST", Endpoint: "/application", Data: `{"name": "test1", "strict_compatibility": true}`, Headers: map[string]string{"Content-Type": "application/json"}} _, c, err := reqWoUser.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } assert.Panicsf(func() { TestApplicationHandler.CreateApplication(c) }, "CreateApplication did not panic although user is not in context") @@ -115,7 +115,7 @@ func TestApi_RegisterApplication(t *testing.T) { var application model.Application w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) @@ -150,7 +150,7 @@ func TestApi_GetApplications(t *testing.T) { for _, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) @@ -183,7 +183,7 @@ func TestApi_GetApplicationsWithoutUser(t *testing.T) { _, c, err := testCase.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } assert.Panicsf(func() { TestApplicationHandler.GetApplications(c) }, "GetApplications did not panic although user is not in context") @@ -203,7 +203,7 @@ func TestApi_GetApplicationErrors(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) @@ -229,7 +229,7 @@ func TestApi_GetApplication(t *testing.T) { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) @@ -282,7 +282,7 @@ func TestApi_UpdateApplication(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) @@ -310,7 +310,7 @@ func TestApi_DeleteApplication(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("user", user) diff --git a/internal/api/context_test.go b/internal/api/context_test.go index d93b941..7b31007 100644 --- a/internal/api/context_test.go +++ b/internal/api/context_test.go @@ -32,7 +32,7 @@ func TestApi_getID(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("id", id) @@ -74,7 +74,7 @@ func TestApi_getApplication(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("id", id) @@ -109,7 +109,7 @@ func TestApi_getUser(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("id", id) diff --git a/internal/api/health_test.go b/internal/api/health_test.go index f8322da..3a6e4f0 100644 --- a/internal/api/health_test.go +++ b/internal/api/health_test.go @@ -19,7 +19,7 @@ func TestApi_Health(t *testing.T) { for _, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } handler.Health(c) diff --git a/internal/api/notification_test.go b/internal/api/notification_test.go index de7c087..06e29b1 100644 --- a/internal/api/notification_test.go +++ b/internal/api/notification_test.go @@ -36,7 +36,7 @@ func TestApi_CreateNotification(t *testing.T) { var notification model.Notification w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("app", &testApplication) @@ -83,7 +83,7 @@ func TestApi_DeleteNotification(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("app", &testApplication) diff --git a/internal/api/user_test.go b/internal/api/user_test.go index 81551c0..4f06738 100644 --- a/internal/api/user_test.go +++ b/internal/api/user_test.go @@ -45,7 +45,7 @@ func TestApi_CreateUser(t *testing.T) { for _, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } TestUserHandler.CreateUser(c) @@ -120,7 +120,7 @@ func TestApi_UpdateUser(t *testing.T) { for id, req := range testCases { w, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("id", id) @@ -134,7 +134,7 @@ func TestApi_UpdateUser(t *testing.T) { for id, req := range testCases { _, c, err := req.GetRequest() if err != nil { - t.Fatalf(err.Error()) + t.Fatal(err.Error()) } c.Set("id", id)