Skip to content

Commit

Permalink
update test func comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larry4xie authored and zouyx committed Mar 27, 2024
1 parent e5322a4 commit 89d4de8
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 89d4de8

Please sign in to comment.