Fix improper chan struct{} usage

This commit is contained in:
MoofMonkey 2022-10-05 02:06:39 +03:00
parent e4105f662c
commit 3260fa88ab
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ func TestQUICServer(t *testing.T) {
var serverReady sync.WaitGroup
serverReady.Add(1)
serverFinished := make(chan struct{}, 1)
serverFinished := make(chan struct{})
go func() {
defer cancel()
quicServer(
@ -233,7 +233,7 @@ func quicServer(
// For now it is an echo server. Verify if the same data is returned.
assert.Equal(t, expectedResponse, response)
serverFinished <- struct{}{}
close(serverFinished)
}
type mockOriginProxyWithRequest struct{}