storagenode/console: payout tests and heldhistory joined_at rounding added

Change-Id: I1d43620fbafbf7ed92588b84cb9c6b8ced8832ef
This commit is contained in:
Qweder93 2020-12-14 19:34:17 +02:00
parent c630037f34
commit 12144a600b
2 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ func TestHeldAmountApi(t *testing.T) {
HoldForThirdPeriod: 0,
TotalHeld: 28,
TotalDisposed: 32,
JoinedAt: date,
JoinedAt: date.Round(time.Minute),
}
stefanID, err := storj.NodeIDFromString("118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW")

View File

@ -216,7 +216,7 @@ func (service *Service) AllHeldbackHistory(ctx context.Context) (result []Satell
return nil, ErrPayoutService.Wrap(err)
}
history.JoinedAt = stats.JoinedAt
history.JoinedAt = stats.JoinedAt.Round(time.Minute)
result = append(result, history)
}