Skip to content

Commit

Permalink
update test func comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larry4xie committed Dec 29, 2023
1 parent 126c701 commit 8b7b49c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions component/remote/async_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ func initNotifications() *config.AppConfig {
return appConfig
}

// Error response
// will hold 5s and keep response 404
// Error response with status and body
func runErrorResponse(status int, body []byte) *httptest.Server {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(status)
Expand Down

0 comments on commit 8b7b49c

Please sign in to comment.