mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-08 07:51:28 +02:00
Remove event generation check for non-echo requests in ICMP tracker test
This commit is contained in:
@@ -33,9 +33,6 @@ func TestICMPTracker_TrackOutbound_NonEcho(t *testing.T) {
|
|||||||
|
|
||||||
// Since type != EchoRequest the connection should not be stored.
|
// Since type != EchoRequest the connection should not be stored.
|
||||||
require.Equal(t, 0, len(tracker.connections), "Non-echo request should not be tracked")
|
require.Equal(t, 0, len(tracker.connections), "Non-echo request should not be tracked")
|
||||||
// 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")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestICMPTracker_TrackOutbound_Echo(t *testing.T) {
|
func TestICMPTracker_TrackOutbound_Echo(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user