Skip to content

Commit

Permalink
test(cleanup): remove unused mock server opts
Browse files Browse the repository at this point in the history
Remove unused tempo mockServerOpts fields.
  • Loading branch information
gabor-boros committed Oct 8, 2021
1 parent b3d1ede commit 9fba963
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/pkg/client/tempo/tempo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ type mockServerOpts struct {
StatusCode int
Username string
Password string
Token string
TokenHeader string
RequestData interface{}
ResponseData *[]tempo.FetchEntry
}
Expand All @@ -55,11 +53,6 @@ func mockServer(t *testing.T, e *mockServerOpts) *httptest.Server {
require.Equal(t, e.Password, password, "API call basic auth password mismatch")
}

if e.Token != "" {
headerValue := r.Header.Get(e.TokenHeader)
require.Equal(t, e.Token, headerValue, "API call auth token mismatch")
}

if e.RequestData != nil {
var data interface{}

Expand Down

0 comments on commit 9fba963

Please sign in to comment.