fix flaky udp proxy test

fixes #169
This commit is contained in:
Lucas Clemente 2016-06-06 19:46:42 +02:00
parent b1e12531bc
commit 0e3d7ab60d

View file

@ -34,12 +34,12 @@ var _ = Describe("Integrationtests", func() {
})
It("stops the UDPProxy", func() {
proxy, err := NewUDPProxy(13370, "localhost", serverPort, nil, nil)
proxy, err := NewUDPProxy(13371, "localhost", serverPort, nil, nil)
Expect(err).ToNot(HaveOccurred())
proxy.Stop()
// check that port 13370 is not in use anymore
addr, err := net.ResolveUDPAddr("udp", ":13370")
addr, err := net.ResolveUDPAddr("udp", ":13371")
Expect(err).ToNot(HaveOccurred())
ln, err := net.ListenUDP("udp", addr)
Expect(err).ToNot(HaveOccurred())