removed fmt

This commit is contained in:
Derek Collison
2012-12-18 17:26:43 -08:00
parent fb79a982ef
commit ec9c016464
2 changed files with 1 additions and 4 deletions

View File

@@ -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) {
}
}

View File

@@ -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 {