Skip to content

Commit

Permalink
fix: require.NoError and pass stderr's writer to be read lazily
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 8, 2023
1 parent b72fbd6 commit a333567
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit a333567

Please sign in to comment.