From de128299237b4dd14c25b8991f5e2de6f4cfe085 Mon Sep 17 00:00:00 2001 From: Liz Rice <liz@lizrice.com> Date: Thu, 31 Aug 2017 17:43:07 +0100 Subject: [PATCH] Correct test to cope with multi-line ps output --- cmd/util_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/util_test.go b/cmd/util_test.go index eb1b90f..1f3e5a2 100644 --- a/cmd/util_test.go +++ b/cmd/util_test.go @@ -189,13 +189,13 @@ func TestGetBinaries(t *testing.T) { { // more than one component config: map[string]interface{}{"components": []string{"apiserver", "thing"}, "apiserver": map[string]interface{}{"bins": []string{"apiserver", "kube-apiserver"}}, "thing": map[string]interface{}{"bins": []string{"something else", "thing"}}}, - psOut: "kube-apiserver thing", + psOut: "kube-apiserver \nthing", exp: map[string]string{"apiserver": "kube-apiserver", "thing": "thing"}, }, { // default binary to component name config: map[string]interface{}{"components": []string{"apiserver", "thing"}, "apiserver": map[string]interface{}{"bins": []string{"apiserver", "kube-apiserver"}}, "thing": map[string]interface{}{"bins": []string{"something else", "thing"}, "optional": true}}, - psOut: "kube-apiserver otherthing", + psOut: "kube-apiserver \notherthing some params", exp: map[string]string{"apiserver": "kube-apiserver", "thing": "thing"}, }, } -- GitLab