Update ICMP tracker test to clarify event generation for non-echo requests

This commit is contained in:
Hakan Sariman
2025-03-18 19:21:42 +08:00
parent c6f9a36e0e
commit a7be9fdcfc

View File

@@ -33,7 +33,7 @@ func TestICMPTracker_TrackOutbound_NonEcho(t *testing.T) {
// Since type != EchoRequest the connection should not be stored.
require.Equal(t, 0, len(tracker.connections), "Non-echo request should not be tracked")
// But an event should be sent (via sendStartEvent).
// No events should be generated for non-echo requests.
events := flowLogger.GetEvents()
require.Equal(t, len(events), 0, "Non-echo request should not generate an event")
}