mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 14:59:11 +00:00
Fix time usage in timed_map_test
This commit is contained in:
1 parent
99f32f1dbf
commit
70ad3d0174
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user