resources: Fix test on Windows
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 25 Jul 2019 14:54:05 +0000 (16:54 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 25 Jul 2019 14:54:05 +0000 (16:54 +0200)
.gitignore
resources/testhelpers_test.go

index 89244f128d4f844cc426d65647a4b304094b29c5..e71fe6c002b2b3c998dc2ba9fd1a74b17f5d4b9d 100644 (file)
@@ -20,5 +20,6 @@ dock.sh
 GoBuilds
 dist
 
+resources/sunset.jpg
 
 vendor
\ No newline at end of file
index 1b2be00d703397fa663377e9ece38de70182c7ec..8aeb1768f19023f7e776ffe0e513c7ddd4a9904f 100644 (file)
@@ -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)