From ec9c01646417a61c5aa0fb147b4e156249fbb994 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Tue, 18 Dec 2012 17:26:43 -0800 Subject: [PATCH] removed fmt --- test/gosrv_test.go | 3 --- test/test.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/gosrv_test.go b/test/gosrv_test.go index b1e05c2c..848673fd 100644 --- a/test/gosrv_test.go +++ b/test/gosrv_test.go @@ -3,7 +3,6 @@ package test import ( - "fmt" "testing" "runtime" "time" @@ -21,7 +20,6 @@ func TestSimpleGoServerShutdown(t *testing.T) { } func TestGoServerShutdownWithClients(t *testing.T) { - fmt.Printf("before: %d go routines\n", runtime.NumGoroutine()) s := runDefaultServer() for i := 0 ; i < 10 ; i++ { createClientConn(t, "localhost", 4222) @@ -35,4 +33,3 @@ func TestGoServerShutdownWithClients(t *testing.T) { } } - diff --git a/test/test.go b/test/test.go index 8056cfa4..06c85e59 100644 --- a/test/test.go +++ b/test/test.go @@ -55,7 +55,7 @@ func runServer(opts *server.Options) *server.Server { // Make sure we are running and can bind before returning. addr := fmt.Sprintf("%s:%d", opts.Host, opts.Port) - end := time.Now().Add(time.Second * 10) + end := time.Now().Add(10 * time.Second) for time.Now().Before(end) { conn, err := net.Dial("tcp", addr) if err != nil {