]> git.feebdaed.xyz Git - 0xmirror/quic-go.git/commitdiff
fix flaky TestConnectionCongestionControl (#5467)
authorCopilot <198982749+Copilot@users.noreply.github.com>
Fri, 28 Nov 2025 12:35:50 +0000 (13:35 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Nov 2025 12:35:50 +0000 (13:35 +0100)
* Initial plan

* Fix flaky TestConnectionCongestionControl by adding missing synctest.Wait()

Co-authored-by: marten-seemann <1478487+marten-seemann@users.noreply.github.com>
---------

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>
connection_test.go

index 99c328853ce5f88eb92b2df3c510e532f58e45bb..ed936b260ffc5591325aac723b2f1137da380836 100644 (file)
@@ -2605,6 +2605,9 @@ func TestConnectionCongestionControl(t *testing.T) {
                // test teardown
                tc.connRunner.EXPECT().Remove(gomock.Any()).AnyTimes()
                tc.conn.destroy(nil)
+
+               synctest.Wait()
+
                select {
                case err := <-errChan:
                        require.NoError(t, err)