Skip to content

Commit 9accf35

Browse files
committed
test: use assert.FailNow to unify fail behaviour
1 parent 1e8de5d commit 9accf35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/test/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func Request(t *testing.T, method, url, body string, headers ...map[string]strin
3232
os.Setenv("LOG_FORMAT", "human")
3333
router, err := controllers.Router()
3434
if err != nil {
35-
t.Fatal(err)
35+
assert.FailNow(t, "Router could not be initialized")
3636
}
3737

3838
recorder := httptest.NewRecorder()

0 commit comments

Comments
 (0)