mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-17 15:56:39 +00:00
Update ICMP tracker test to clarify event generation for non-echo requests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user