Skip to content

Commit 828a930

Browse files
committed
Use localhost in test
1 parent 89a4b01 commit 828a930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

discon-server/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestServeWs(t *testing.T) {
2323
// Start server in separate go routine
2424
go func() {
2525
log.Printf("Listening on port %d", port)
26-
err := http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
26+
err := http.ListenAndServe(fmt.Sprintf("localhost:%d", port), nil)
2727
if err != nil {
2828
log.Fatal("ListenAndServe: ", err)
2929
}

0 commit comments

Comments
 (0)