Skip to content

Commit

Permalink
Fix flaky test by ignoring error in stream close
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Apr 5, 2024
1 parent 3e97adc commit 1be706c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion association_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1be706c

Please sign in to comment.