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 Feb 10, 2025
1 parent 429ad79 commit 3be16b1
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 @@ -60,6 +60,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 3be16b1

Please sign in to comment.