Use time.Time which does RFC3339 across the wire to handle time zones. Arguably we should change the API to always do this...

This commit is contained in:
Jeff Mitchell
2016-06-07 16:01:09 -04:00
parent 91053b7471
commit 8dffc64388
9 changed files with 29 additions and 22 deletions

View File

@@ -70,7 +70,7 @@ func TestCopy_response(t *testing.T) {
WrapInfo: &logical.WrapInfo{
TTL: 60,
Token: "foo",
CreationTime: 100000,
CreationTime: time.Now(),
},
}
arg := expected
@@ -140,7 +140,7 @@ func TestHash(t *testing.T) {
WrapInfo: &logical.WrapInfo{
TTL: 60,
Token: "bar",
CreationTime: 100000,
CreationTime: now,
},
},
&logical.Response{
@@ -150,7 +150,7 @@ func TestHash(t *testing.T) {
WrapInfo: &logical.WrapInfo{
TTL: 60,
Token: "hmac-sha256:f9320baf0249169e73850cd6156ded0106e2bb6ad8cab01b7bbbebe6d1065317",
CreationTime: 100000,
CreationTime: now,
},
},
},