Explorar o código

Switches to cleaner syntax for creating the WaitGroup.

James Phillips %!s(int64=9) %!d(string=hai) anos
pai
achega
a45b905f12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.