From a333567c3d8fe2d8cf75f097f3c88c51ff924e3a Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Fri, 8 Sep 2023 16:12:41 -0400 Subject: [PATCH] fix: require.NoError and pass stderr's writer to be read lazily --- cmd/soroban-rpc/internal/test/cli_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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() }