forked from quic-go/quic-go
change how the multiplex test is skipped on Linux (#3817)
This commit is contained in:
@@ -156,10 +156,9 @@ var _ = Describe("Multiplexing", func() {
|
||||
Eventually(done, timeout).Should(BeClosed())
|
||||
})
|
||||
|
||||
// This test would require setting of iptables rules, see https://stackoverflow.com/questions/23859164/linux-udp-socket-sendto-operation-not-permitted.
|
||||
if runtime.GOOS != "linux" {
|
||||
It("runs a server and client on the same conn", func() {
|
||||
if runtime.GOOS == "linux" {
|
||||
Skip("This test would require setting of iptables rules, see https://stackoverflow.com/questions/23859164/linux-udp-socket-sendto-operation-not-permitted.")
|
||||
}
|
||||
addr1, err := net.ResolveUDPAddr("udp", "localhost:0")
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
conn1, err := net.ListenUDP("udp", addr1)
|
||||
@@ -209,5 +208,6 @@ var _ = Describe("Multiplexing", func() {
|
||||
Eventually(done1, timeout).Should(BeClosed())
|
||||
Eventually(done2, timeout).Should(BeClosed())
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user