mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 16:07:29 +00:00
Make metav1.(Micro)?Time functions take pointers
Kubernetes-commit: 0504cfbc2556155c31e5db43673d6b903c64dfa2
This commit is contained in:
parent
0f0bf98750
commit
890c48c52e
@ -102,7 +102,7 @@ func validateEvent(messagePrefix string, actualEvent *v1.Event, expectedEvent *v
|
|||||||
}
|
}
|
||||||
actualFirstTimestamp := recvEvent.FirstTimestamp
|
actualFirstTimestamp := recvEvent.FirstTimestamp
|
||||||
actualLastTimestamp := recvEvent.LastTimestamp
|
actualLastTimestamp := recvEvent.LastTimestamp
|
||||||
if actualFirstTimestamp.Equal(actualLastTimestamp) {
|
if actualFirstTimestamp.Equal(&actualLastTimestamp) {
|
||||||
if expectCompression {
|
if expectCompression {
|
||||||
t.Errorf("%v - FirstTimestamp (%q) and LastTimestamp (%q) must be different to indicate event compression happened, but were the same. Actual Event: %#v", messagePrefix, actualFirstTimestamp, actualLastTimestamp, recvEvent)
|
t.Errorf("%v - FirstTimestamp (%q) and LastTimestamp (%q) must be different to indicate event compression happened, but were the same. Actual Event: %#v", messagePrefix, actualFirstTimestamp, actualLastTimestamp, recvEvent)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user