From a9c9658cb78130ff0e7b313659460da9aa2e8c81 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 31 May 2024 16:58:25 +0000 Subject: [PATCH] backport of commit c3197c5253e8f2b99bea9be26a633e25af6976d5 --- internal/billing/repository_test.go | 2 +- .../daemon/controller/handlers/billing/billing_service_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/billing/repository_test.go b/internal/billing/repository_test.go index dcd40175e4..b018ffd8e9 100644 --- a/internal/billing/repository_test.go +++ b/internal/billing/repository_test.go @@ -78,7 +78,7 @@ func TestRepository_MonthlyActiveUsers(t *testing.T) { // start of the month. For example, if... // today -> May 30th // today.AddDate(0, -3, 0).Month() -> March - // February was expcted here, but we get March. This seems to be a + // February was expected here, but we get March. This seems to be a // rounding thing since February 30th is not a valid date. Instead, the // start of the month is used to ensure the correct months are calculated. monthStart := time.Date(today.Year(), today.Month(), 1, 0, 0, 0, 0, time.UTC) diff --git a/internal/daemon/controller/handlers/billing/billing_service_test.go b/internal/daemon/controller/handlers/billing/billing_service_test.go index 79aba44fae..beeb2c5ce1 100644 --- a/internal/daemon/controller/handlers/billing/billing_service_test.go +++ b/internal/daemon/controller/handlers/billing/billing_service_test.go @@ -45,7 +45,7 @@ func Test_MonthlyActiveUsers(t *testing.T) { // start of the month. For example, if... // today -> May 30th // today.AddDate(0, -3, 0).Month() -> March - // February was expcted here, but we get March. This seems to be a + // February was expected here, but we get March. This seems to be a // rounding thing since February 30th is not a valid date. Instead, the // start of the month is used to ensure the correct months are calculated. monthStart := time.Date(today.Year(), today.Month(), 1, 0, 0, 0, 0, time.UTC)