Skip to content

Commit b94dd82

Browse files
committed
fix: Update controller tests with valid config
The previous commit introduced a unified and validated configuration for the flow control system, requiring callers to pass a pre-validated cofig to the controller and registry respectively. This change updates the controller tests to provide a valid configuration instead of relying on the now-removed defaulting logic in the constructor.
1 parent 4fad1a9 commit b94dd82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/epp/flowcontrol/controller/controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ func TestFlowController_Concurrency(t *testing.T) {
796796
// Use a generous buffer to prevent flakes in the test due to transient queuing delays.
797797
EnqueueChannelBufferSize: numRequests,
798798
DefaultRequestTTL: 1 * time.Second,
799+
ExpiryCleanupInterval: 100 * time.Millisecond,
799800
}, mockRegistry)
800801

801802
var wg sync.WaitGroup

0 commit comments

Comments
 (0)