Browse Source

Reduce ping pong test

Armon Dadgar 10 years ago
parent
commit
82780df15c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      session_test.go

+ 2 - 2
session_test.go

@@ -404,7 +404,7 @@ func TestManyStreams_PingPong(t *testing.T) {
 		defer stream.Close()
 
 		buf := make([]byte, 4)
-		for i := 0; i < 10000; i++ {
+		for i := 0; i < 1000; i++ {
 			n, err := stream.Write(ping)
 			if err != nil {
 				t.Fatalf("err: %v", err)
@@ -426,7 +426,7 @@ func TestManyStreams_PingPong(t *testing.T) {
 		}
 	}
 
-	for i := 0; i < 100; i++ {
+	for i := 0; i < 50; i++ {
 		wg.Add(2)
 		go acceptor(i)
 		go sender(i)