File: download_wintz_test.go

package info (click to toggle)
golang-github-thlib-go-timezone-local 0.0~git20210907.ef149e4-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 228 kB
  • sloc: makefile: 4
file content (16 lines) | stat: -rw-r--r-- 303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package tzdata

import (
	"os"
	"testing"
)

func TestDownloadWindowsZones(t *testing.T) {
	if os.Getenv("AUTOPKGTEST_TMP") == "" {
		t.Skip("skip test as Internet access is disallowed during Debian package build")
	}
	_, err := DownloadWindowsZones()
	if err != nil {
		t.Errorf("error: %v", err)
	}
}