Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions internal/pkg/store/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func TestStore_SearchDeployments(t *testing.T) {
&ent.User{ID: u1},
[]deployment.Status{},
owned,
time.Now().Add(-time.Minute),
time.Now(),
time.Now().UTC().Add(-time.Minute),
time.Now().UTC(),
Comment on lines +78 to +79
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, the time zone of scheme is using UTC format.

page,
perPage)
if err != nil {
Expand Down Expand Up @@ -104,8 +104,8 @@ func TestStore_SearchDeployments(t *testing.T) {
deployment.StatusWaiting,
},
owned,
time.Now().Add(-time.Minute),
time.Now(),
time.Now().UTC().Add(-time.Minute),
time.Now().UTC(),
page,
perPage)
if err != nil {
Expand All @@ -131,8 +131,8 @@ func TestStore_SearchDeployments(t *testing.T) {
&ent.User{ID: u1},
[]deployment.Status{},
owned,
time.Now().Add(-time.Minute),
time.Now(),
time.Now().UTC().Add(-time.Minute),
time.Now().UTC(),
page,
perPage)
if err != nil {
Expand Down