mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
resources: Fix test on Windows
This commit is contained in:
parent
77bf2991b1
commit
e5b6e2085a
2 changed files with 1 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,5 +20,6 @@ dock.sh
|
||||||
GoBuilds
|
GoBuilds
|
||||||
dist
|
dist
|
||||||
|
|
||||||
|
resources/sunset.jpg
|
||||||
|
|
||||||
vendor
|
vendor
|
|
@ -102,7 +102,6 @@ func newTestResourceOsFs(assert *require.Assertions) *Spec {
|
||||||
|
|
||||||
fs := hugofs.NewFrom(hugofs.Os, cfg)
|
fs := hugofs.NewFrom(hugofs.Os, cfg)
|
||||||
fs.Destination = &afero.MemMapFs{}
|
fs.Destination = &afero.MemMapFs{}
|
||||||
fs.Source = afero.NewBasePathFs(hugofs.Os, workDir)
|
|
||||||
|
|
||||||
s, err := helpers.NewPathSpec(fs, cfg, nil)
|
s, err := helpers.NewPathSpec(fs, cfg, nil)
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
|
|
Loading…
Reference in a new issue