From e7c97f0f5dad7a7a764c973b0e0fe6a7722cad3a Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 13 Apr 2021 13:24:38 +1000 Subject: [PATCH] runtime/tests: Change "moo FAILURE" message Change the "moo FAILURE" message shown in a couple of the unit tests to "moo message". This means that searching for unrelated failures in the test output by looking for "FAIL" won't show these messages as false positives any more. fixes #1683 Signed-off-by: David Gibson --- src/runtime/cli/main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/cli/main_test.go b/src/runtime/cli/main_test.go index d47a016560..1f4951a763 100644 --- a/src/runtime/cli/main_test.go +++ b/src/runtime/cli/main_test.go @@ -869,7 +869,7 @@ func TestMainCreateRuntime(t *testing.T) { assert := assert.New(t) const cmd = "foo" - const msg = "moo FAILURE" + const msg = "moo message" resetCLIGlobals() @@ -942,7 +942,7 @@ func TestMainFatalWriter(t *testing.T) { assert := assert.New(t) const cmd = "foo" - const msg = "moo FAILURE" + const msg = "moo message" // create buffer to save logger output buf := &bytes.Buffer{}