Skip to content

Commit

Permalink
satellite/console: fix flaky GetUsersProjects service test
Browse files Browse the repository at this point in the history
Change-Id: I0d7f2ed31c97dfa7d1023f515876775ca7af34e3
  • Loading branch information
VitaliiShpital committed Feb 1, 2024
1 parent ed08c4f commit d833a11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions satellite/console/service_test.go
Expand Up @@ -125,6 +125,10 @@ func TestService(t *testing.T) {
segments, err := sat.Metabase.DB.TestingAllSegments(userCtx3)
require.NoError(t, err)

service.TestSetNow(func() time.Time {
return time.Date(now.Year(), now.Month(), 4, 0, 0, 0, 0, time.UTC)
})

projects, err = service.GetUsersProjects(userCtx3)
require.NoError(t, err)
require.Equal(t, settledAmount, projects[0].BandwidthUsed)
Expand Down

0 comments on commit d833a11

Please sign in to comment.