Skip to content

Commit 2ce11a2

Browse files
committed
TUN-5287: Fix misuse of wait group in TestQUICServer that caused the test to exit immediately
1 parent ff7c485 commit 2ce11a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection/quic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ func TestQUICServer(t *testing.T) {
154154
t.Run(test.desc, func(t *testing.T) {
155155
ctx, cancel := context.WithCancel(context.Background())
156156
var wg sync.WaitGroup
157+
wg.Add(1)
157158
go func() {
158-
wg.Add(1)
159159
defer wg.Done()
160160
quicServer(
161161
t, udpListener, tlsConfig, quicConfig,

0 commit comments

Comments
 (0)