Skip to content

Commit

Permalink
fix race condition in multiplex integration test (#4136)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 28, 2023
1 parent 5311f81 commit 6eb0cac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrationtests/self/multiplex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ var _ = Describe("Multiplexing", func() {
b := make([]byte, packetLen)
rand.Read(b[1:]) // keep the first byte set to 0, so it's not classified as a QUIC packet
_, err := tr1.WriteTo(b, tr2.Conn.LocalAddr())
if ctx.Err() != nil { // ctx canceled while Read was executing
return
}
Expect(err).ToNot(HaveOccurred())
sentPackets.Add(1)
}
Expand Down

0 comments on commit 6eb0cac

Please sign in to comment.