forked from quic-go/quic-go
fix flaky HTTP/3 request body test (#3447)
This commit is contained in:
@@ -797,9 +797,11 @@ var _ = Describe("Client", func() {
|
||||
<-done
|
||||
return 0, errors.New("test done")
|
||||
})
|
||||
str.EXPECT().Close()
|
||||
closed := make(chan struct{})
|
||||
str.EXPECT().Close().Do(func() { close(closed) })
|
||||
_, err := client.RoundTripOpt(req, RoundTripOpt{})
|
||||
Expect(err).To(MatchError("test done"))
|
||||
Eventually(closed).Should(BeClosed())
|
||||
})
|
||||
|
||||
It("sets the Content-Length", func() {
|
||||
|
||||
Reference in New Issue
Block a user