File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ var _ = Describe("Updater", func() {
40
40
WithScheme (scheme ).
41
41
Build ()
42
42
43
- // Rfc3339Copy() removes the monotonic clock reading
44
- // We need to remove it, because updating the status in the FakeClient and then getting the resource back
45
- // involves encoding and decoding the resource to/from JSON, which removes the monotonic clock reading .
43
+ // Rfc3339Copy() removes the monotonic clock reading and leaves only second-level precision.
44
+ // We use it because updating the status in the FakeClient and then getting the resource back
45
+ // involves encoding and decoding the resource to/from JSON, which uses RFC 3339 for metav1.Time .
46
46
fakeClockTime = metav1 .NewTime (time .Now ()).Rfc3339Copy ()
47
47
fakeClock := & statusfakes.FakeClock {}
48
48
fakeClock .NowReturns (fakeClockTime )
You can’t perform that action at this time.
0 commit comments