hugolib: Disable shaky leaktest on CI

This commit is contained in:
Bjørn Erik Pedersen
2017-06-13 21:22:47 +02:00
parent 95386544e8
commit 5103935ae8
2 changed files with 8 additions and 2 deletions

View File

@@ -208,3 +208,7 @@ func writeSourcesToSource(t *testing.T, base string, fs *hugofs.Fs, sources ...s
writeSource(t, fs, filepath.Join(base, src.Name), string(src.Content))
}
}
func isCI() bool {
return os.Getenv("CI") != ""
}