Skip to content

Commit

Permalink
Fix failing test in command/resource/read (#19722)
Browse files Browse the repository at this point in the history
  • Loading branch information
analogue authored Nov 22, 2023
1 parent ba24225 commit 7cf48bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/resource/read/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand All @@ -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)
})
}
Expand Down

0 comments on commit 7cf48bc

Please sign in to comment.