Browse Source

Switches to cleaner syntax for creating the WaitGroup.

James Phillips 9 years ago
parent
commit
a45b905f12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      session_test.go

+ 1 - 1
session_test.go

@@ -811,7 +811,7 @@ func TestWindowUpdateWriteDuringRead(t *testing.T) {
 	defer client.Close()
 	defer server.Close()
 
-	wg := &sync.WaitGroup{}
+	var wg sync.WaitGroup
 	wg.Add(2)
 
 	// Choose a huge flood size that we know will result in a window update.