Selaa lähdekoodia

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

Frédéric Guillot 2 vuotta sitten
vanhempi
commit
e3b3c40c28
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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) {