From d714a578af37c5aa89e33f20e457e366f4032d1f Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 14 Jul 2023 08:15:48 +0930 Subject: [PATCH] address pr comment --- packetbeat/beater/install_npcap_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packetbeat/beater/install_npcap_test.go b/packetbeat/beater/install_npcap_test.go index 0118a448b622..90961a26d648 100644 --- a/packetbeat/beater/install_npcap_test.go +++ b/packetbeat/beater/install_npcap_test.go @@ -210,10 +210,9 @@ func TestCanInstallNpcap(t *testing.T) { t.Fatalf("unexpected error: %v", err) } b := &beat.Beat{ - BeatConfig: cfg, - Manager: boolManager{managed: test.managed}, + Manager: boolManager{managed: test.managed}, } - got, err := canInstallNpcap(b, b.BeatConfig) + got, err := canInstallNpcap(b, cfg) if err != nil { t.Errorf("unexpected error from canInstallNpcap: %v", err) }