Skip to content

Commit fd1055d

Browse files
test: check deferred Close errors in TestSASLBindTokenExchangeShortInProgress
1 parent b87ad13 commit fd1055d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/bind_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ func TestConn_UnauthenticatedBind(t *testing.T) {
106106
// must reject it instead of indexing past the slice.
107107
func TestSASLBindTokenExchangeShortInProgress(t *testing.T) {
108108
ptc := newPacketTranslatorConn()
109-
defer ptc.Close()
109+
defer func() { _ = ptc.Close() }()
110110

111111
conn := NewConn(ptc, false)
112112
conn.Start()
113-
defer conn.Close()
113+
defer func() { _ = conn.Close() }()
114114

115115
type result struct {
116116
err error

0 commit comments

Comments
 (0)