Skip to content

Commit 2ecd975

Browse files
committedOct 19, 2016
Added timeout to UDP server test
1 parent 80797f0 commit 2ecd975

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const connstring = "localhost:3333"
1212

1313
func TestUDPServer(t *testing.T) {
1414
go setupUDPServer(connstring)
15+
time.Sleep(2 * time.Second)
1516
conn, err := net.Dial("udp4", connstring)
1617
if err != nil {
1718
t.Error("Expected to connect to ", connstring)

0 commit comments

Comments
 (0)
Please sign in to comment.