Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps: source cache: fix flaky bolt test #1133

Merged
merged 1 commit into from
Sep 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions internal/gps/source_cache_bolt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ func TestBoltCacheTimeout(t *testing.T) {

// Read with a later epoch. Expect no *timestamped* values, since all were < `after`.
{
after := time.Now()
if after.Unix() <= start.Unix() {
// Ensure a future timestamp.
after = start.Add(10 * time.Second)
}
after := start.Add(1000 * time.Hour)
bc, err = newBoltCache(cpath, after.Unix(), logger)
if err != nil {
t.Fatal(err)
Expand Down