storagenode/console: payout tests and heldhistory joined_at rounding added
Change-Id: I1d43620fbafbf7ed92588b84cb9c6b8ced8832ef
This commit is contained in:
parent
c630037f34
commit
12144a600b
@ -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")
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user