[k8s.io/client-go]fix typo in eventseries_test.go method
This commit is contained in:
@@ -168,17 +168,17 @@ func TestEventSeriesf(t *testing.T) {
|
|||||||
if item.expectUpdate {
|
if item.expectUpdate {
|
||||||
actualEvent := <-patchEvent
|
actualEvent := <-patchEvent
|
||||||
t.Logf("%v - validating event affected by patch request", index)
|
t.Logf("%v - validating event affected by patch request", index)
|
||||||
validateEventSerie(strconv.Itoa(index), true, actualEvent, item.expect, t)
|
validateEventSeries(strconv.Itoa(index), true, actualEvent, item.expect, t)
|
||||||
} else {
|
} else {
|
||||||
actualEvent := <-createEvent
|
actualEvent := <-createEvent
|
||||||
t.Logf("%v - validating event affected by a create request", index)
|
t.Logf("%v - validating event affected by a create request", index)
|
||||||
validateEventSerie(strconv.Itoa(index), false, actualEvent, item.expect, t)
|
validateEventSeries(strconv.Itoa(index), false, actualEvent, item.expect, t)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(stopCh)
|
close(stopCh)
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateEventSerie(messagePrefix string, expectedUpdate bool, actualEvent *v1beta1.Event, expectedEvent *v1beta1.Event, t *testing.T) {
|
func validateEventSeries(messagePrefix string, expectedUpdate bool, actualEvent *v1beta1.Event, expectedEvent *v1beta1.Event, t *testing.T) {
|
||||||
recvEvent := *actualEvent
|
recvEvent := *actualEvent
|
||||||
|
|
||||||
// Just check that the timestamp was set.
|
// Just check that the timestamp was set.
|
||||||
|
|||||||
Reference in New Issue
Block a user