Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed May 15, 2016
1 parent 5e7364a commit 2247f1c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions p2p/net/swarm/limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package swarm
import (
"fmt"
"math/rand"
"runtime"
"strconv"
"testing"
"time"
Expand Down Expand Up @@ -263,7 +262,6 @@ func TestTokenRedistribution(t *testing.T) {

func TestStressLimiter(t *testing.T) {
df := func(ctx context.Context, p peer.ID, a ma.Multiaddr) (conn.Conn, error) {
fmt.Println("dial for peer: ", string(p))
if tcpPortOver(a, 1000) {
return conn.Conn(nil), nil
} else {
Expand Down Expand Up @@ -307,8 +305,6 @@ func TestStressLimiter(t *testing.T) {
}(peer.ID(fmt.Sprintf("testpeer%d", i)))
}

time.Sleep(time.Millisecond * 1000)
fmt.Println("NUM GOROS: ", runtime.NumGoroutine())
for i := 0; i < 20; i++ {
select {
case <-success:
Expand Down

0 comments on commit 2247f1c

Please sign in to comment.