Skip to content

Commit

Permalink
fix: initialize fake clock in terminator test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Jan 15, 2025
1 parent 21176e1 commit 044cf4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/node/termination/terminator/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func TestAPIs(t *testing.T) {
}

var _ = BeforeSuite(func() {
fakeClock = clock.NewFakeClock(time.Now())
env = test.NewEnvironment(test.WithCRDs(apis.CRDs...), test.WithCRDs(v1alpha1.CRDs...))
ctx = options.ToContext(ctx, test.Options())
recorder = test.NewEventRecorder()
Expand Down

0 comments on commit 044cf4d

Please sign in to comment.