Skip to content

Commit

Permalink
keep one value between desc and streamType
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchen-g committed Jan 23, 2025
1 parent 7a12bca commit ff85839
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,32 +82,28 @@ func verifyAllCDValues(t *testing.T, dut1 *ondatra.DUTDevice, p1StreamInstant, p
{
desc: "Instant",
stream: p1StreamInstant,
streamType: "Instant",
operStatus: operStatus,
},
{
desc: "Max",
stream: p1StreamMax,
streamType: "Max",
operStatus: operStatus,
},
{
desc: "Min",
stream: p1StreamMin,
streamType: "Min",
operStatus: operStatus,
},
{
desc: "Avg",
stream: p1StreamAvg,
streamType: "Avg",
operStatus: operStatus,
},
}

for _, tt := range tests {
t.Run(tt.desc, func(t *testing.T) {
verifyCDValue(t, dut1, tt.stream, tt.streamType, tt.operStatus)
verifyCDValue(t, dut1, tt.stream, tt.desc, tt.operStatus)
})
}
}
Expand Down

0 comments on commit ff85839

Please sign in to comment.