TUN-5287: Fix misuse of wait group in TestQUICServer that caused the test to exit immediately
This commit is contained in:
parent
ff7c48568c
commit
2ce11a20c4
|
@ -154,8 +154,8 @@ func TestQUICServer(t *testing.T) {
|
||||||
t.Run(test.desc, func(t *testing.T) {
|
t.Run(test.desc, func(t *testing.T) {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
go func() {
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
quicServer(
|
quicServer(
|
||||||
t, udpListener, tlsConfig, quicConfig,
|
t, udpListener, tlsConfig, quicConfig,
|
||||||
|
|
Loading…
Reference in New Issue