From c3f638957ad30ec71f068bdeb4855f8a1f07ec49 Mon Sep 17 00:00:00 2001 From: Hang Yan Date: Fri, 8 Nov 2024 11:26:44 +0800 Subject: [PATCH] update Signed-off-by: Hang Yan --- pkg/agent/packetcapture/packetcapture_controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/packetcapture/packetcapture_controller_test.go b/pkg/agent/packetcapture/packetcapture_controller_test.go index 411d7f78708..3f3861dcfe6 100644 --- a/pkg/agent/packetcapture/packetcapture_controller_test.go +++ b/pkg/agent/packetcapture/packetcapture_controller_test.go @@ -405,7 +405,7 @@ func TestPacketCaptureControllerRun(t *testing.T) { } // delete cr - err := pcc.crdClient.CrdV1alpha1().PacketCaptures().Delete(context.TODO(), item.pc.Name, metav1.DeleteOptions{}) + err = pcc.crdClient.CrdV1alpha1().PacketCaptures().Delete(context.TODO(), item.pc.Name, metav1.DeleteOptions{}) require.NoError(t, err) stopCh <- struct{}{}