Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit bb91020

Browse files
author
Noah Lee
authored
Fix the bug of local test (#258)
1 parent 8b03b29 commit bb91020

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/pkg/store/deployment_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func TestStore_SearchDeployments(t *testing.T) {
7575
&ent.User{ID: u1},
7676
[]deployment.Status{},
7777
owned,
78-
time.Now().Add(-time.Minute),
79-
time.Now(),
78+
time.Now().UTC().Add(-time.Minute),
79+
time.Now().UTC(),
8080
page,
8181
perPage)
8282
if err != nil {
@@ -104,8 +104,8 @@ func TestStore_SearchDeployments(t *testing.T) {
104104
deployment.StatusWaiting,
105105
},
106106
owned,
107-
time.Now().Add(-time.Minute),
108-
time.Now(),
107+
time.Now().UTC().Add(-time.Minute),
108+
time.Now().UTC(),
109109
page,
110110
perPage)
111111
if err != nil {
@@ -131,8 +131,8 @@ func TestStore_SearchDeployments(t *testing.T) {
131131
&ent.User{ID: u1},
132132
[]deployment.Status{},
133133
owned,
134-
time.Now().Add(-time.Minute),
135-
time.Now(),
134+
time.Now().UTC().Add(-time.Minute),
135+
time.Now().UTC(),
136136
page,
137137
perPage)
138138
if err != nil {

0 commit comments

Comments
 (0)