forked from quic-go/quic-go
fix flaky TestConnectionUnpackFailureDropped (#5382)
* Initial plan * Fix flaky TestConnectionUnpackFailureDropped by adding synctest.Wait Co-authored-by: marten-seemann <1478487+marten-seemann@users.noreply.github.com> * formatting --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: marten-seemann <1478487+marten-seemann@users.noreply.github.com> Co-authored-by: Marten Seemann <martenseemann@gmail.com>
This commit is contained in:
@@ -862,6 +862,9 @@ func testConnectionUnpackFailureDropped(t *testing.T, unpackErr error, packetDro
|
|||||||
// test teardown
|
// test teardown
|
||||||
tc.connRunner.EXPECT().Remove(gomock.Any()).AnyTimes()
|
tc.connRunner.EXPECT().Remove(gomock.Any()).AnyTimes()
|
||||||
tc.conn.destroy(nil)
|
tc.conn.destroy(nil)
|
||||||
|
|
||||||
|
synctest.Wait()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-errChan:
|
case <-errChan:
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user