Skip to content

Commit

Permalink
acme: in TestFetchCertCancel, do not reply before the cancellation pr…
Browse files Browse the repository at this point in the history
…opagates

Fixes golang/go#44611

Change-Id: I81b3c3b7be25fe4e492695fa5935e70aa7b96c07
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/378074
Trust: Bryan Mills <[email protected]>
Run-TryBot: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Roland Shoemaker <[email protected]>
  • Loading branch information
Bryan C. Mills committed Jan 12, 2022
1 parent e495a2d commit 5e0467b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acme/acme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ func TestFetchCertRetry(t *testing.T) {

func TestFetchCertCancel(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
<-r.Context().Done()
w.Header().Set("Retry-After", "0")
w.WriteHeader(http.StatusBadRequest)
}))
Expand Down

0 comments on commit 5e0467b

Please sign in to comment.