TUN-5287: Fix misuse of wait group in TestQUICServer that caused the test to exit immediately

This commit is contained in:
cthuang 2021-10-21 15:48:11 +01:00 committed by Chung Ting Huang
parent ff7c48568c
commit 2ce11a20c4
1 changed files with 1 additions and 1 deletions

View File

@ -154,8 +154,8 @@ func TestQUICServer(t *testing.T) {
t.Run(test.desc, func(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
var wg sync.WaitGroup
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
quicServer(
t, udpListener, tlsConfig, quicConfig,