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

Commit 062d2d0

Browse files
authored
Merge pull request #1133 from jmank88/bolt_test
gps: source cache: fix flaky bolt test
2 parents d3e738d + bbb11a8 commit 062d2d0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/gps/source_cache_bolt_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ func TestBoltCacheTimeout(t *testing.T) {
139139

140140
// Read with a later epoch. Expect no *timestamped* values, since all were < `after`.
141141
{
142-
after := time.Now()
143-
if after.Unix() <= start.Unix() {
144-
// Ensure a future timestamp.
145-
after = start.Add(10 * time.Second)
146-
}
142+
after := start.Add(1000 * time.Hour)
147143
bc, err = newBoltCache(cpath, after.Unix(), logger)
148144
if err != nil {
149145
t.Fatal(err)

0 commit comments

Comments
 (0)