shithub: hugo

Download patch

ref: 4108705934846f2b7cae2602ce14aeee17139608
parent: 9c1e82085eb07d5b4dcdacbe82d5bafd26e08631
author: Anthony Fok <[email protected]>
date: Mon Jul 9 18:29:52 EDT 2018

hugolib: Remove empty resources/ dir after TestNewSiteDefaultLang

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