Procházet zdrojové kódy

Switches to cleaner syntax for creating the WaitGroup.

James Phillips před 9 roky
rodič
revize
a45b905f12
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.