Skip to content

Commit

Permalink
Updating sflow packet count with tolerance check to 8 from 9 for cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
trathod1 committed Jan 3, 2025
1 parent 4a7d887 commit 0d8ba03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature/sflow/otg_tests/sflow_base_test/sflow_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ func validatePackets(t *testing.T, filename string, ip IPType, fc flowConfig) {

}
t.Logf("SFlow samples captured: %v", sampleCount)
if !found || sampleCount < 9 {
t.Errorf("sflow packets not found: got %v, want 9", sampleCount)
if !found || sampleCount < 8 {
t.Errorf("sflow packets not found: got %v, want 8", sampleCount)
}

handle, _ = pcap.OpenOffline(filename)
Expand Down

0 comments on commit 0d8ba03

Please sign in to comment.