@@ -244,7 +244,7 @@ func TestGetAccountEgress(t *testing.T) {
244244 require .ErrorAs (t , err , & periodErr )
245245 })
246246
247- t .Run ("returns period not acceptable error when period exceeds 365 days" , func (t * testing.T ) {
247+ t .Run ("returns period not acceptable error when period exceeds 366 days" , func (t * testing.T ) {
248248 accountDID := testutil .RandomDID (t )
249249 space := testutil .RandomDID (t )
250250
@@ -266,7 +266,7 @@ func TestGetAccountEgress(t *testing.T) {
266266 }
267267
268268 from := time .Date (2024 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC )
269- to := time .Date (2025 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ) // 366 days
269+ to := time .Date (2025 , 1 , 2 , 0 , 0 , 0 , 0 , time .UTC ) // 367 days
270270 period := & Period {From : from , To : to }
271271
272272 result , err := svc .GetAccountEgress (context .Background (), accountDID , nil , period )
@@ -275,7 +275,7 @@ func TestGetAccountEgress(t *testing.T) {
275275 require .Nil (t , result )
276276 var periodErr ErrPeriodNotAcceptable
277277 require .ErrorAs (t , err , & periodErr )
278- assert .Contains (t , periodErr .msg , "365 days" )
278+ assert .Contains (t , periodErr .msg , "366 days" )
279279 })
280280
281281 t .Run ("successfully returns empty result for account with no spaces" , func (t * testing.T ) {
0 commit comments