Skip to content
Prev Previous commit
Next Next commit
fix: linter issues in tests
  • Loading branch information
plyr4 committed Mar 21, 2023
commit edd088bbc99a1f11745ff977c93d5c91fd001fa3
6 changes: 1 addition & 5 deletions vela/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ func TestVela_Authentication_ValidateToken_200(t *testing.T) {
t.Errorf("ValidateToken returned error %v", err)
}

if resp == nil {
t.Errorf("ValidateToken response should not be nil")
}

if resp.StatusCode != http.StatusOK {
t.Errorf("ValidateToken returned %v, want %v", resp.StatusCode, http.StatusOK)
}
Expand All @@ -247,6 +243,6 @@ func TestVela_Authentication_ValidateToken_NoToken(t *testing.T) {
}

if resp != nil {
t.Errorf("ValidateToken response should be nil")
t.Error("ValidateToken response should be nil")
}
}