Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Oct 23, 2018
1 parent 2575d29 commit c14ad35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions input/listen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (m *mockHandler) String() string {
func TestTcpUdpShutdown(t *testing.T) {
handler := mockHandler{testing: t}
addr := "localhost:" // choose random ports
listener := NewListener("mock", addr, &handler)
listener := NewListener("mock", addr, 0, &handler)
err := listener.Start()
if err != nil {
t.Fatalf("Error when trying to listen: %s", err)
Expand All @@ -61,7 +61,7 @@ func TestTcpUdpShutdown(t *testing.T) {
func TestTcpConnection(t *testing.T) {
handler := mockHandler{testing: t}
addr := "localhost:" // choose random ports
listener := NewListener("mock", addr, &handler)
listener := NewListener("mock", addr, 0, &handler)
err := listener.Start()
if err != nil {
t.Fatalf("Error when listening: %s", err)
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestTcpConnection(t *testing.T) {
func TestUdpConnection(t *testing.T) {
handler := mockHandler{testing: t}
addr := "localhost:" // choose random ports
listener := NewListener("mock", addr, &handler)
listener := NewListener("mock", addr, 0, &handler)
err := listener.Start()
if err != nil {
t.Fatalf("Error when listening: %s", err)
Expand Down

0 comments on commit c14ad35

Please sign in to comment.