From f769d322b26c5fb5151a2ce0e1957ffb45296e70 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 19:29:47 +0930 Subject: [PATCH] filebeat/input/internal/procnet: fix typos in test error messages (#36290) (#36443) (cherry picked from commit 6ce195e897670cd721c416d3de231dfb3e77deeb) Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com> --- filebeat/input/internal/procnet/procnet_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filebeat/input/internal/procnet/procnet_test.go b/filebeat/input/internal/procnet/procnet_test.go index 832b528c549..975f4a4aa95 100644 --- a/filebeat/input/internal/procnet/procnet_test.go +++ b/filebeat/input/internal/procnet/procnet_test.go @@ -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) @@ -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) } }) }