diff --git a/cmd/soroban-rpc/internal/test/cli_test.go b/cmd/soroban-rpc/internal/test/cli_test.go index 5f16dc5390..776749298d 100644 --- a/cmd/soroban-rpc/internal/test/cli_test.go +++ b/cmd/soroban-rpc/internal/test/cli_test.go @@ -46,10 +46,7 @@ func TestCLIContractDeployAndInvoke(t *testing.T) { func assertCmd(t *testing.T, cmd string) string { res := runCLICommand(cmd) - - stderr := res.Stderr() - println(stderr) - require.True(t, res.ExitCode == 0, stderr) + require.NoError(t, res.Error, res.Cmd.Stderr) return res.Stdout() }