Skip to content

Commit 1c32d37

Browse files
committed
fix test
1 parent 1d07efc commit 1c32d37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/manager/runnable_group_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ var _ = Describe("runnableGroup", func() {
349349
})
350350
})
351351

352+
var _ LeaderElectionRunnable = &leaderElectionRunnableFunc{}
353+
352354
// leaderElectionRunnableFunc is a helper struct that implements LeaderElectionRunnable
353355
// for testing purposes.
354356
type leaderElectionRunnableFunc struct {
@@ -364,6 +366,8 @@ func (r leaderElectionRunnableFunc) NeedLeaderElection() bool {
364366
return r.NeedLeaderElectionFunc()
365367
}
366368

369+
var _ WarmupRunnable = &warmupRunnableFunc{}
370+
367371
// warmupRunnableFunc is a helper struct that implements WarmupRunnable
368372
// for testing purposes.
369373
type warmupRunnableFunc struct {
@@ -379,6 +383,10 @@ func (r warmupRunnableFunc) Warmup(ctx context.Context) error {
379383
return r.WarmupFunc(ctx)
380384
}
381385

386+
func (r warmupRunnableFunc) WaitForWarmupComplete(ctx context.Context) bool {
387+
return true
388+
}
389+
382390
// combinedRunnable implements both WarmupRunnable and LeaderElectionRunnable
383391
type combinedRunnable struct {
384392
RunFunc func(context.Context) error

0 commit comments

Comments
 (0)