From ac37f69f17b7459a22a286bde47c1636bf608b80 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Thu, 24 Mar 2022 20:09:16 -0400 Subject: [PATCH] Update error message assertions --- staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go b/staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go index 1f5eb6058ec..69f3b726cda 100644 --- a/staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go +++ b/staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go @@ -814,12 +814,12 @@ func TestKustomizeDirectoryBuilder(t *testing.T) { { directory: filepath.Join(dir, "kustomization.yaml"), expectErr: true, - errMsg: "must be a directory to be a root", + errMsg: "must be a directory so that it can used as a build root", }, { directory: "../../artifacts/kustomization/should-not-load.yaml", expectErr: true, - errMsg: "must be a directory to be a root", + errMsg: "must be a directory so that it can used as a build root", }, } for _, tt := range tests {