expected 3 actions

pull/2715/head
carlory 8 years ago
parent d75d0ea2de
commit 076fb21399

@ -52,8 +52,8 @@ func TestResetCmd(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
actions := fc.Actions() actions := fc.Actions()
if len(actions) != 2 { if len(actions) != 3 {
t.Errorf("Expected 2 actions, got %d", len(actions)) t.Errorf("Expected 3 actions, got %d", len(actions))
} }
expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster." expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster."
if !strings.Contains(buf.String(), expected) { if !strings.Contains(buf.String(), expected) {
@ -86,8 +86,8 @@ func TestResetCmd_removeHelmHome(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
actions := fc.Actions() actions := fc.Actions()
if len(actions) != 2 { if len(actions) != 3 {
t.Errorf("Expected 2 actions, got %d", len(actions)) t.Errorf("Expected 3 actions, got %d", len(actions))
} }
expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster." expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster."
if !strings.Contains(buf.String(), expected) { if !strings.Contains(buf.String(), expected) {
@ -157,8 +157,8 @@ func TestReset_forceFlag(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
actions := fc.Actions() actions := fc.Actions()
if len(actions) != 2 { if len(actions) != 3 {
t.Errorf("Expected 2 actions, got %d", len(actions)) t.Errorf("Expected 3 actions, got %d", len(actions))
} }
expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster." expected := "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster."
if !strings.Contains(buf.String(), expected) { if !strings.Contains(buf.String(), expected) {

Loading…
Cancel
Save