瀏覽代碼

Switches to cleaner syntax for creating the WaitGroup.

James Phillips 9 年之前
父節點
當前提交
a45b905f12
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.