Skip to content

Commit

Permalink
Fix P4Runtime performance test
Browse files Browse the repository at this point in the history
The test was failing intermittently in EOS because the ATE ingress
counters check for verifying the expected packetOut counters was done
right after injecting the traceroute/LLDP/GDP packets with no delay.

There is no guarantee that all the packetOut requests have been
guaranteed by that time. Added a 30s delay, to account for any trailing
inflight packets.
  • Loading branch information
prakashbadri-arista committed Jul 13, 2023
1 parent ea809c0 commit ed382c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func testPktInPktOut(t *testing.T, args *testArgs) {

wg.Wait() // Wait for all four goroutines to finish before exiting.

time.Sleep(30 * time.Second)
// Check packet counters after packet out
counter1 := gnmi.Get(t, args.ate, gnmi.OC().Interface(port).Counters().InPkts().State())

Expand Down

0 comments on commit ed382c2

Please sign in to comment.