From 6be6b74ef7e513e4073c94f096f7a590c3f14575 Mon Sep 17 00:00:00 2001 From: Dong Gang Date: Fri, 10 Jul 2020 11:08:40 +0800 Subject: [PATCH] fix unit test error Signed-off-by: Dong Gang --- pkg/action/action_test.go | 2 +- pkg/action/uninstall_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/action/action_test.go b/pkg/action/action_test.go index 804f0ea80..d06d5ca3a 100644 --- a/pkg/action/action_test.go +++ b/pkg/action/action_test.go @@ -141,7 +141,7 @@ var manifestWithKeepAnno = ` apiVersion: v1 kind: Pod metadata: - name: pod-keep, + name: pod-keep annotations: "helm.sh/resource-policy": keep spec: diff --git a/pkg/action/uninstall_test.go b/pkg/action/uninstall_test.go index f48338cd1..124014034 100644 --- a/pkg/action/uninstall_test.go +++ b/pkg/action/uninstall_test.go @@ -31,5 +31,5 @@ func TestUninstall_deleteRelease(t *testing.T) { unisAction := NewUninstall(config) str, errs := unisAction.deleteRelease(rel) is.Len(errs, 0) - is.Equal("pod/pod-keep\n", str) + is.Equal("Pod/pod-keep\n", str) }