summaryrefslogtreecommitdiffstats
path: root/modules/timeutil/since_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/timeutil/since_test.go')
-rw-r--r--modules/timeutil/since_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/timeutil/since_test.go b/modules/timeutil/since_test.go
index dfcf9cb01d..9350b5e96b 100644
--- a/modules/timeutil/since_test.go
+++ b/modules/timeutil/since_test.go
@@ -5,6 +5,7 @@
package timeutil
import (
+ "context"
"fmt"
"os"
"testing"
@@ -31,7 +32,7 @@ func TestMain(m *testing.M) {
setting.Names = []string{"english"}
setting.Langs = []string{"en-US"}
// setup
- translation.InitLocales()
+ translation.InitLocales(context.Background())
BaseDate = time.Date(2000, time.January, 1, 0, 0, 0, 0, time.UTC)
// run the tests