Make metav1.(Micro)?Time functions take pointers

Kubernetes-commit: 0504cfbc2556155c31e5db43673d6b903c64dfa2
This commit is contained in:
gmarek 2017-08-04 17:04:14 +02:00 committed by Kubernetes Publisher
parent 0f0bf98750
commit 890c48c52e

View File

@ -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)
} }