hugolib: Remove empty resources/ dir after TestNewSiteDefaultLang

This commit is contained in:
Anthony Fok 2018-07-09 22:29:52 -06:00 committed by Bjørn Erik Pedersen
parent 9c1e82085e
commit 4108705934

View file

@ -15,6 +15,7 @@ package hugolib
import ( import (
"fmt" "fmt"
"os"
"path/filepath" "path/filepath"
"strings" "strings"
"testing" "testing"
@ -359,6 +360,7 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
func TestNewSiteDefaultLang(t *testing.T) { func TestNewSiteDefaultLang(t *testing.T) {
t.Parallel() t.Parallel()
defer os.Remove("resources")
s, err := NewSiteDefaultLang() s, err := NewSiteDefaultLang()
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, hugofs.Os, s.Fs.Source) require.Equal(t, hugofs.Os, s.Fs.Source)