Explorar o código

timezone: make sure the tests pass when the timezone database is not installed on the host

Frédéric Guillot %!s(int64=2) %!d(string=hai) anos
pai
achega
e3b3c40c28
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      internal/timezone/timezone_test.go

+ 3 - 0
internal/timezone/timezone_test.go

@@ -6,6 +6,9 @@ package timezone // import "miniflux.app/v2/internal/timezone"
 import (
 	"testing"
 	"time"
+
+	// Make sure these tests pass when the timezone database is not installed on the host system.
+	_ "time/tzdata"
 )
 
 func TestNow(t *testing.T) {