diff --git a/common/collect/timed_map_test.go b/common/collect/timed_map_test.go index d0ef7c87..8ef19bc6 100644 --- a/common/collect/timed_map_test.go +++ b/common/collect/timed_map_test.go @@ -41,7 +41,7 @@ func TestTimedStringMap(t *testing.T) { v2, ok = m.Get("Key2") assert.Bool(ok).IsFalse() - m.Set("Key1", "Value1", nowSec+10) + m.Set("Key1", "Value1", time.Now().UTC().Unix()+10) v1, ok = m.Get("Key1") assert.Bool(ok).IsTrue() assert.String(v1.(string)).Equals("Value1")