Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaif committed Jan 17, 2024
1 parent 9489183 commit 5cdce6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statsd/uds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ func TestUDSStreamPartialWrite(t *testing.T) {
// Force a connection
w.ensureConnection()
conn, err := listener.Accept()
require.NoError(err)
require.NoError(t, err)
defer conn.Close()

// Set a very low buffer size to force a partial write, but still enough to write the header
require.NoError(w.conn.(*net.UnixConn).SetWriteBuffer(1))
require.NoError(t, w.conn.(*net.UnixConn).SetWriteBuffer(1))
// On linux we need to force a timeout this way
w.connectTimeout = -1 * time.Millisecond

Expand Down

0 comments on commit 5cdce6d

Please sign in to comment.