Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0e2be0d3
Commit
0e2be0d3
authored
Jun 30, 2015
by
CJ Cullen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix record tests
parent
2a803769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
event_test.go
pkg/client/record/event_test.go
+1
-1
events_cache_test.go
pkg/client/record/events_cache_test.go
+1
-1
No files found.
pkg/client/record/event_test.go
View file @
0e2be0d3
...
...
@@ -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
)
}
...
...
pkg/client/record/events_cache_test.go
View file @
0e2be0d3
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment