From d2268e5e3e84bb17272403a4212462002a02ae4e Mon Sep 17 00:00:00 2001 From: Adrian Serrano Date: Mon, 2 Nov 2020 21:38:17 +0100 Subject: [PATCH] Fix build of Packetbeat test under windows/386 (#22351) Constant overflowed 32-bit int. Closes #22303 (cherry picked from commit 7bdfc1556df2e2f3184374654fe38666746684f6) --- packetbeat/procs/procs_windows_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packetbeat/procs/procs_windows_test.go b/packetbeat/procs/procs_windows_test.go index 532d430dd04..2a4ad96e18d 100644 --- a/packetbeat/procs/procs_windows_test.go +++ b/packetbeat/procs/procs_windows_test.go @@ -33,6 +33,7 @@ func TestParseTableRaw(t *testing.T) { IPv4 := extractTCPRowOwnerPID IPv6 := extractTCP6RowOwnerPID + pid := uint32(0xCCCCCCCC) for idx, testCase := range []struct { name string factory extractorFactory @@ -52,7 +53,7 @@ func TestParseTableRaw(t *testing.T) { "01000000" + "77777777AAAAAAAA12340000BBBBBBBBFFFF0000CCCCCCCC", []portProcMapping{ - {endpoint: endpoint{address: "170.170.170.170", port: 0x1234}, pid: 0xCCCCCCCC}, + {endpoint: endpoint{address: "170.170.170.170", port: 0x1234}, pid: int(pid)}, }, false}, {"Two entries (IPv6)", IPv6, "02000000" +