mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
fix flaky HTTP/3 server test
This commit is contained in:
parent
9967b9d797
commit
fa96c1a9ec
1 changed files with 0 additions and 7 deletions
|
@ -82,13 +82,6 @@ var _ = Describe("Server", func() {
|
||||||
str.EXPECT().Close().Do(func() { close(closed) })
|
str.EXPECT().Close().Do(func() { close(closed) })
|
||||||
rw := newRequestWriter(utils.DefaultLogger)
|
rw := newRequestWriter(utils.DefaultLogger)
|
||||||
Expect(rw.WriteRequest(str, req)).To(Succeed())
|
Expect(rw.WriteRequest(str, req)).To(Succeed())
|
||||||
if req.Body != nil {
|
|
||||||
b := make([]byte, 1000)
|
|
||||||
n, err := io.ReadFull(req.Body, b)
|
|
||||||
Expect(err).To(Equal(io.ErrUnexpectedEOF)) // otherwise b is too small for this test
|
|
||||||
(&dataFrame{Length: uint64(n)}).Write(buf)
|
|
||||||
buf.Write(b[:n])
|
|
||||||
}
|
|
||||||
Eventually(closed).Should(BeClosed())
|
Eventually(closed).Should(BeClosed())
|
||||||
return buf.Bytes()
|
return buf.Bytes()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue