Update pkg/util/teams/teams_test.go

This commit is contained in:
Felix Kunde 2022-04-13 19:29:29 +02:00 committed by GitHub
parent b5b6f41692
commit b24731c0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -162,9 +162,7 @@ func TestInfo(t *testing.T) {
if r.Header.Get("Authorization") != "Bearer "+token { if r.Header.Get("Authorization") != "Bearer "+token {
t.Errorf("authorization token is wrong or not provided") t.Errorf("authorization token is wrong or not provided")
} }
if tc.inTeam == "acid" { w.WriteHeader(tc.inCode)
w.WriteHeader(tc.inCode)
}
if _, err := fmt.Fprint(w, tc.in); err != nil { if _, err := fmt.Fprint(w, tc.in); err != nil {
t.Errorf("error writing teams api response %v", err) t.Errorf("error writing teams api response %v", err)
} }