summaryrefslogtreecommitdiffstats
path: root/hugolib/testhelpers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-13 21:22:47 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-13 21:22:47 +0200
commit5103935ae80536fbe0624c408016cdcbd1f03c1d (patch)
tree34e14b1056d7045e3b9e9f7cf284f2dfeaebb167 /hugolib/testhelpers_test.go
parent95386544e858949a2baa414f395f30aaf66a6257 (diff)
hugolib: Disable shaky leaktest on CI
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r--hugolib/testhelpers_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index c386e6203..3db2d9d51 100644
--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -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") != ""
+}