http3: return the context cancellation error from RoundTrip (#4203)

This commit is contained in:
Marten Seemann
2023-12-21 11:16:30 +07:00
committed by GitHub
parent d3c5f389d4
commit 2243fdefbf
3 changed files with 25 additions and 1 deletions

View File

@@ -922,7 +922,7 @@ var _ = Describe("Client", func() {
return 0, errors.New("test done")
})
_, err := cl.RoundTripOpt(req, roundTripOpt)
Expect(err).To(MatchError("test done"))
Expect(err).To(MatchError(context.Canceled))
Eventually(done).Should(BeClosed())
})
})