aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/sitemap_test.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2015-05-20 02:21:21 -0400
committerspf13 <[email protected]>2015-05-20 02:21:21 -0400
commita584ff207b4ee951e4b25cf5cedf6d261ee1bc47 (patch)
tree4273e35cfd90493ed0d25d53450285b61c527418 /hugolib/sitemap_test.go
parent599d1b9786ddbaa9203aaca2c96ab33b40a583b1 (diff)
downloadhugo-a584ff207b4ee951e4b25cf5cedf6d261ee1bc47.tar.gz
hugo-a584ff207b4ee951e4b25cf5cedf6d261ee1bc47.zip
Stop Viper from leaking across many of the tests (now tests pass regardless of order tested)
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r--hugolib/sitemap_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go
index 0342e2261..2e24e4c47 100644
--- a/hugolib/sitemap_test.go
+++ b/hugolib/sitemap_test.go
@@ -23,6 +23,9 @@ const SITEMAP_TEMPLATE = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap
</urlset>`
func TestSitemapOutput(t *testing.T) {
+ viper.Reset()
+ defer viper.Reset()
+
hugofs.DestinationFS = new(afero.MemMapFs)
viper.Set("baseurl", "http://auth/bub/")