Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
13a16798
Unverified
Commit
13a16798
authored
Nov 16, 2018
by
Stephan Renatus
Committed by
GitHub
Nov 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1344 from concourse/pr/fix-conformance-time-comparison
fix bogus conformance failure due to time zones
parents
5236b2c8
dcca4275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
conformance.go
storage/conformance/conformance.go
+14
-0
No files found.
storage/conformance/conformance.go
View file @
13a16798
...
@@ -341,6 +341,20 @@ func testRefreshTokenCRUD(t *testing.T, s storage.Storage) {
...
@@ -341,6 +341,20 @@ func testRefreshTokenCRUD(t *testing.T, s storage.Storage) {
t
.
Errorf
(
"get refresh: %v"
,
err
)
t
.
Errorf
(
"get refresh: %v"
,
err
)
return
return
}
}
if
diff
:=
pretty
.
Compare
(
gr
.
CreatedAt
.
UnixNano
(),
gr
.
CreatedAt
.
UnixNano
());
diff
!=
""
{
t
.
Errorf
(
"refresh token created timestamp retrieved from storage did not match: %s"
,
diff
)
}
if
diff
:=
pretty
.
Compare
(
gr
.
LastUsed
.
UnixNano
(),
gr
.
LastUsed
.
UnixNano
());
diff
!=
""
{
t
.
Errorf
(
"refresh token last used timestamp retrieved from storage did not match: %s"
,
diff
)
}
gr
.
CreatedAt
=
time
.
Time
{}
gr
.
LastUsed
=
time
.
Time
{}
want
.
CreatedAt
=
time
.
Time
{}
want
.
LastUsed
=
time
.
Time
{}
if
diff
:=
pretty
.
Compare
(
want
,
gr
);
diff
!=
""
{
if
diff
:=
pretty
.
Compare
(
want
,
gr
);
diff
!=
""
{
t
.
Errorf
(
"refresh token retrieved from storage did not match: %s"
,
diff
)
t
.
Errorf
(
"refresh token retrieved from storage did not match: %s"
,
diff
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment