summaryrefslogtreecommitdiffstats
path: root/tpl/data/resources_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/data/resources_test.go')
-rw-r--r--tpl/data/resources_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go
index f0b027955..79e9b3907 100644
--- a/tpl/data/resources_test.go
+++ b/tpl/data/resources_test.go
@@ -127,7 +127,7 @@ func TestScpGetRemote(t *testing.T) {
func TestScpGetRemoteParallel(t *testing.T) {
t.Parallel()
- ns := New(newDeps(viper.New()))
+ ns := newTestNs()
content := []byte(`T€st Content 123`)
srv, cl := getTestServer(func(w http.ResponseWriter, r *http.Request) {
@@ -176,3 +176,9 @@ func newDeps(cfg config.Provider) *deps.Deps {
ContentSpec: cs,
}
}
+
+func newTestNs() *Namespace {
+ v := viper.New()
+ v.Set("contentDir", "content")
+ return New(newDeps(v))
+}