fix(tests): set mock to generate UTC timestamps (#4716)

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
pull/4794/head
Matt Butcher 6 years ago committed by GitHub
parent d6ba48d07e
commit 9fda187647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ import (
func TestStatusCmd(t *testing.T) {
releasesMockWithStatus := func(info *release.Info) []*release.Release {
info.LastDeployed = time.Unix(1452902400, 0)
info.LastDeployed = time.Unix(1452902400, 0).UTC()
return []*release.Release{{
Name: "flummoxed-chickadee",
Info: info,

@ -187,7 +187,7 @@ type MockReleaseOptions struct {
// ReleaseMock creates a mock release object based on options set by MockReleaseOptions. This function should typically not be used outside of testing.
func ReleaseMock(opts *MockReleaseOptions) *release.Release {
date := time.Unix(242085845, 0)
date := time.Unix(242085845, 0).UTC()
name := opts.Name
if name == "" {

Loading…
Cancel
Save