Skip to content

Commit 0bc6b84

Browse files
Apply suggestion from @shmuelk
Co-authored-by: Shmuel Kallner <kallner@il.ibm.com> Signed-off-by: Luke Van Drie <lukevandrie@google.com>
1 parent f4b38a1 commit 0bc6b84

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/epp/flowcontrol/integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ func TestGlobalAndBandCapacityInteraction(t *testing.T) {
497497

498498
key := flowcontrol.FlowKey{ID: "flow-a", Priority: 0}
499499

500-
release := h.fillQueue(t, key, 3, 100, func() bool {
501-
return h.reg.Stats().TotalLen == 3
500+
const count = 3
501+
release := h.fillQueue(t, key, count, 100, func() bool {
502+
return h.reg.Stats().TotalLen == count
502503
})
503504

504505
// The global limit (3) is exhausted while the band limit (10) still has room, so a further

0 commit comments

Comments
 (0)