Skip to content

Commit

Permalink
Fix record tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcullen committed Jul 1, 2015
1 parent 2a80376 commit 0e2be0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/client/record/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func validateEvent(actualEvent *api.Event, expectedEvent *api.Event, t *testing.
if actualEvent.FirstTimestamp.IsZero() || actualEvent.LastTimestamp.IsZero() {
t.Errorf("timestamp wasn't set: %#v", *actualEvent)
}
if actualEvent.FirstTimestamp.Equal(actualEvent.LastTimestamp.Time) {
if actualEvent.FirstTimestamp.Equal(actualEvent.LastTimestamp) {
if expectCompression {
t.Errorf("FirstTimestamp (%q) and LastTimestamp (%q) must be equal to indicate only one occurance of the event, but were different. Actual Event: %#v", actualEvent.FirstTimestamp, actualEvent.LastTimestamp, *actualEvent)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/record/events_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func compareEventWithHistoryEntry(expected *api.Event, actual *history, t *testi
t.Fatalf("There should be one existing instance of this event in the hash table.")
}

if !actual.FirstTimestamp.Equal(expected.FirstTimestamp.Time) {
if !actual.FirstTimestamp.Equal(expected.FirstTimestamp) {
t.Fatalf("Unexpected FirstTimestamp. Expected: <%v> Actual: <%v>", expected.FirstTimestamp, actual.FirstTimestamp)
}

Expand Down

0 comments on commit 0e2be0d

Please sign in to comment.