Skip to content

Commit

Permalink
Update plugins/inputs/socket_listener/socket_listener_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
  • Loading branch information
MarekZydor and srebhan authored Nov 15, 2024
1 parent 3ef3dc8 commit adfcaef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/inputs/socket_listener/socket_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ func TestLargeReadBufferUnixgram(t *testing.T) {
// Check the socket write buffer size
unixConn, ok := client.(*net.UnixConn)
require.True(t, ok, "client is not a *net.UnixConn")
err = unixConn.SetWriteBuffer(len(message))
if err != nil {
if err := unixConn.SetWriteBuffer(len(message)); err != nil {
t.Skipf("Failed to set write buffer size: %v. Skipping test.", err)
}

Expand Down

0 comments on commit adfcaef

Please sign in to comment.