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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2021-04-13 13:24:38 +10:00
parent 2e60a9d3d9
commit e7c97f0f5d

View File

@ -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{}