Remove call to UTC() which is not necessary.

This commit is contained in:
V2Ray committed 2015-10-29 12:04:14 +01:00
1 parent d0ae47e2ce
commit fdb41bbd50
4 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ func TestTimedQueue(t *testing.T) {
removed := make(map[string]bool)
nowSec := time.Now().UTC().Unix()
nowSec := time.Now().Unix()
q := NewTimedQueue(2)
go func() {
@@ -51,7 +51,7 @@ func TestTimedQueue(t *testing.T) {
<-tick
assert.Bool(removed["Values"]).IsFalse()
q.Add("Value1", time.Now().UTC().Unix()+10)
q.Add("Value1", time.Now().Unix()+10)
<-tick
v1, ok = removed["Value1"]