Skip to content

Commit 5e0467b

Browse files
author
Bryan C. Mills
committed
acme: in TestFetchCertCancel, do not reply before the cancellation propagates
Fixes golang/go#44611 Change-Id: I81b3c3b7be25fe4e492695fa5935e70aa7b96c07 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/378074 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org>
1 parent e495a2d commit 5e0467b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

acme/acme_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ func TestFetchCertRetry(t *testing.T) {
975975

976976
func TestFetchCertCancel(t *testing.T) {
977977
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
978+
<-r.Context().Done()
978979
w.Header().Set("Retry-After", "0")
979980
w.WriteHeader(http.StatusBadRequest)
980981
}))

0 commit comments

Comments
 (0)