Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-wong committed Dec 20, 2024
1 parent 10ed7f7 commit 923d28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/internal/httptrace/httptrace_api_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func loadTest(t *testing.T) {
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/error" {
w.WriteHeader(http.StatusInternalServerError)
_ = json.NewEncoder(w).Encode(map[string]string{"message": "ERROR"})
json.NewEncoder(w).Encode(map[string]string{"message": "ERROR"})
} else {
w.WriteHeader(http.StatusOK)
_ = json.NewEncoder(w).Encode(map[string]string{"message": "OK"})
json.NewEncoder(w).Encode(map[string]string{"message": "OK"})
}
})
appListener = httptest.NewServer(mux)
Expand Down

0 comments on commit 923d28b

Please sign in to comment.