From: Bjørn Erik Pedersen Date: Thu, 25 Jul 2019 14:54:05 +0000 (+0200) Subject: resources: Fix test on Windows X-Git-Tag: v0.56.0~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e5b6e2085aba74767ace269cd5f8a746230b4fa4;p=brevno-suite%2Fhugo resources: Fix test on Windows --- diff --git a/.gitignore b/.gitignore index 89244f12..e71fe6c0 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ dock.sh GoBuilds dist +resources/sunset.jpg vendor \ No newline at end of file diff --git a/resources/testhelpers_test.go b/resources/testhelpers_test.go index 1b2be00d..8aeb1768 100644 --- a/resources/testhelpers_test.go +++ b/resources/testhelpers_test.go @@ -102,7 +102,6 @@ func newTestResourceOsFs(assert *require.Assertions) *Spec { fs := hugofs.NewFrom(hugofs.Os, cfg) fs.Destination = &afero.MemMapFs{} - fs.Source = afero.NewBasePathFs(hugofs.Os, workDir) s, err := helpers.NewPathSpec(fs, cfg, nil) assert.NoError(err)