From 1be706c045600d813ba64cffafe318d1c90f2902 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 4 Apr 2024 17:32:31 -0700 Subject: [PATCH] Fix flaky test by ignoring error in stream close --- association_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/association_test.go b/association_test.go index 8b87c952..0784f515 100644 --- a/association_test.go +++ b/association_test.go @@ -2839,7 +2839,7 @@ func TestAssociationReceiveWindow(t *testing.T) { defer noErrorClose(t, a1.Close) s1, err := a1.OpenStream(1, PayloadTypeWebRTCBinary) require.NoError(t, err) - defer noErrorClose(t, s1.Close) + defer s1.Close() // nolint:errcheck,gosec _, err = s1.WriteSCTP([]byte("hello"), PayloadTypeWebRTCBinary) require.NoError(t, err) dudp1.block.Store(true)