From 7cf48bcbe156ae209aba89546013f15e1252e684 Mon Sep 17 00:00:00 2001 From: Semir Patel Date: Wed, 22 Nov 2023 11:04:54 -0600 Subject: [PATCH] Fix failing test in command/resource/read (#19722) --- command/resource/read/read_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/resource/read/read_test.go b/command/resource/read/read_test.go index a293a9faf5..5c5e854e8d 100644 --- a/command/resource/read/read_test.go +++ b/command/resource/read/read_test.go @@ -139,7 +139,7 @@ func TestResourceRead(t *testing.T) { name: "read resource that doesn't exist", args: []string{"demo.v2.Artist", "fake-korn", "-partition=default", "-namespace=default", "-peer=local"}, expectedCode: 1, - errMsg: "Error reading resource &{demo v2 Artist}/fake-korn: Unexpected response code: 404 (rpc error: code = NotFound desc = resource not found)\n", + errMsg: "Error reading resource demo.v2.Artist/fake-korn: Unexpected response code: 404 (rpc error: code = NotFound desc = resource not found)\n", }, } @@ -149,7 +149,7 @@ func TestResourceRead(t *testing.T) { c := New(ui) cliArgs := append(tc.args, defaultCmdArgs...) code := c.Run(cliArgs) - require.Equal(t, ui.ErrorWriter.String(), tc.errMsg) + require.Equal(t, tc.errMsg, ui.ErrorWriter.String()) require.Equal(t, tc.expectedCode, code) }) }