From 4859b6a4a9946f408defbf789f28860bf6e5ce6d Mon Sep 17 00:00:00 2001 From: Hongxin Liang Date: Mon, 7 Sep 2020 17:21:29 +0200 Subject: [PATCH] Put testdata together with test cases --- pkg/executioncluster/impl/random_cluster_selector_test.go | 2 +- pkg/executioncluster/{ => impl}/testdata/clusters_config.yaml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename pkg/executioncluster/{ => impl}/testdata/clusters_config.yaml (100%) diff --git a/pkg/executioncluster/impl/random_cluster_selector_test.go b/pkg/executioncluster/impl/random_cluster_selector_test.go index 04b47ec1a..d3559a35e 100644 --- a/pkg/executioncluster/impl/random_cluster_selector_test.go +++ b/pkg/executioncluster/impl/random_cluster_selector_test.go @@ -36,7 +36,7 @@ func initTestConfig(fileName string) error { } configAccessor := viper.NewAccessor(config.Options{ - SearchPaths: []string{filepath.Join(pwd, "../testdata", fileName)}, + SearchPaths: []string{filepath.Join(pwd, "testdata", fileName)}, StrictMode: false, }) return configAccessor.UpdateConfig(context.Background()) diff --git a/pkg/executioncluster/testdata/clusters_config.yaml b/pkg/executioncluster/impl/testdata/clusters_config.yaml similarity index 100% rename from pkg/executioncluster/testdata/clusters_config.yaml rename to pkg/executioncluster/impl/testdata/clusters_config.yaml