mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
removed fmt
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user