Skip to content
Permalink
Browse files

Merge pull request #81331 from tariq1890/tst_typo

[k8s.io/client-go]fix typo in eventseries_test.go method
  • Loading branch information...
k8s-ci-robot committed Aug 14, 2019
2 parents 4441f1d + 8056403 commit a520302fb4673e595fcb70d2a4db26598371be92
Showing with 3 additions and 3 deletions.
  1. +3 −3 staging/src/k8s.io/client-go/tools/events/eventseries_test.go
@@ -168,17 +168,17 @@ func TestEventSeriesf(t *testing.T) {
if item.expectUpdate {
actualEvent := <-patchEvent
t.Logf("%v - validating event affected by patch request", index)
validateEventSerie(strconv.Itoa(index), true, actualEvent, item.expect, t)
validateEvent(strconv.Itoa(index), true, actualEvent, item.expect, t)
} else {
actualEvent := <-createEvent
t.Logf("%v - validating event affected by a create request", index)
validateEventSerie(strconv.Itoa(index), false, actualEvent, item.expect, t)
validateEvent(strconv.Itoa(index), false, actualEvent, item.expect, t)
}
}
close(stopCh)
}

func validateEventSerie(messagePrefix string, expectedUpdate bool, actualEvent *v1beta1.Event, expectedEvent *v1beta1.Event, t *testing.T) {
func validateEvent(messagePrefix string, expectedUpdate bool, actualEvent *v1beta1.Event, expectedEvent *v1beta1.Event, t *testing.T) {
recvEvent := *actualEvent

// Just check that the timestamp was set.

0 comments on commit a520302

Please sign in to comment.
You can’t perform that action at this time.