mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix failing Redis query results test (#864)
Due to the timezone being changed on time.Time's zero value after a roundtrip serialization, any times being compared in this test must be explicitly set.
This commit is contained in:
parent
f3f6ff4010
commit
b3213e5921
1 changed files with 5 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ func testQueryResultsStore(t *testing.T, store kolide.QueryResultStore) {
|
|||
},
|
||||
|
||||
DetailUpdateTime: time.Now().UTC(),
|
||||
SeenTime: time.Now().UTC(),
|
||||
},
|
||||
},
|
||||
kolide.DistributedQueryResult{
|
||||
|
|
@ -158,6 +159,7 @@ func testQueryResultsStore(t *testing.T, store kolide.QueryResultStore) {
|
|||
},
|
||||
|
||||
DetailUpdateTime: time.Now().UTC(),
|
||||
SeenTime: time.Now().UTC(),
|
||||
},
|
||||
},
|
||||
kolide.DistributedQueryResult{
|
||||
|
|
@ -175,6 +177,7 @@ func testQueryResultsStore(t *testing.T, store kolide.QueryResultStore) {
|
|||
},
|
||||
|
||||
DetailUpdateTime: time.Now().UTC(),
|
||||
SeenTime: time.Now().UTC(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -201,6 +204,7 @@ func testQueryResultsStore(t *testing.T, store kolide.QueryResultStore) {
|
|||
},
|
||||
|
||||
DetailUpdateTime: time.Now().UTC(),
|
||||
SeenTime: time.Now().UTC(),
|
||||
},
|
||||
},
|
||||
kolide.DistributedQueryResult{
|
||||
|
|
@ -218,6 +222,7 @@ func testQueryResultsStore(t *testing.T, store kolide.QueryResultStore) {
|
|||
},
|
||||
|
||||
DetailUpdateTime: time.Now().UTC(),
|
||||
SeenTime: time.Now().UTC(),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue