Skip to content

Commit 9c38dd1

Browse files
committed
Fix admission integration test call after constructor change
Signed-off-by: Matthieu Paret <mp@blackfuel.ai>
1 parent 0fe3d04 commit 9c38dd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/epp/requestcontrol/admission_integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,21 @@ func newRealFlowControlHarness(t *testing.T, opts realFlowControlOpts) *realFlow
9898
detector := &mockSaturationDetector{
9999
SaturationFunc: func(context.Context, []fwkdl.Endpoint) float64 { return opts.saturation },
100100
}
101+
candidates := &mocks.MockEndpointCandidates{Candidates: opts.candidates}
101102
fc := fccontroller.NewFlowController(ctx, "test-pool", &fccontroller.Config{
102103
DefaultRequestTTL: requestTTL,
103104
ExpiryCleanupInterval: 10 * time.Millisecond,
104105
EnqueueChannelBufferSize: 100,
105106
}, fccontroller.Deps{
106107
Registry: reg,
107108
SaturationDetector: detector,
108-
EndpointCandidates: &mocks.MockEndpointCandidates{Candidates: opts.candidates},
109+
EndpointCandidates: candidates,
109110
UsageLimitPolicy: usagelimits.DefaultPolicy(),
110111
})
111112

112113
return &realFlowControlHarness{
113114
cancel: cancel,
114-
ac: NewFlowControlAdmissionController(fc, "test-pool"),
115+
ac: NewFlowControlAdmissionController(fc, "test-pool", candidates),
115116
reg: reg,
116117
}
117118
}

0 commit comments

Comments
 (0)