Skip to content

Commit

Permalink
filebeat/input/internal/procnet: fix typos in test error messages (#3…
Browse files Browse the repository at this point in the history
…6290) (#36443)

(cherry picked from commit 6ce195e)

Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
  • Loading branch information
mergify[bot] and efd6 committed Aug 29, 2023
1 parent 57ed996 commit f769d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filebeat/input/internal/procnet/procnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAddrs(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
if len(addr4) == 0 {
t.Errorf("expected addr in addr4 for IPv4 address: %v", addr6)
t.Errorf("expected addr in addr4 for IPv4 address: addr6 is %v", addr6)
}
if len(addr6) != 0 {
t.Errorf("unexpected addrs in addr6 for IPv4 address: %v", addr6)
Expand All @@ -43,10 +43,10 @@ func TestAddrs(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
if len(addr4) != 0 {
t.Errorf("expected addr in addr4 for IPv4 address: %v", addr6)
t.Errorf("unexpected addr in addr4 for IPv6 address: %v", addr4)
}
if len(addr6) == 0 {
t.Errorf("unexpected addrs in addr6 for IPv4 address: %v", addr6)
t.Errorf("expected addrs in addr6 for IPv6 address: addr4 is %v", addr4)
}
})
}

0 comments on commit f769d32

Please sign in to comment.