Skip to content

Commit

Permalink
fix: print out stdout, stderr regardless of error
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Sep 13, 2023
1 parent d1f8d31 commit ba99914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/soroban-rpc/internal/test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func invoke(t *testing.T, contractID string, testAccountID uint32, args string)
func runSuccessfulCLICmd(t *testing.T, cmd string) string {
res := runCLICommand(t, cmd)
require.NoError(t, res.Error, fmt.Sprintf("stderr:\n%s\nstdout:\n%s\n", res.Stderr(), res.Stdout()))
println(fmt.Sprintf("stderr:\n%s\nstdout:\n-------\n%s\n-----\n", res.Stderr(), res.Stdout()))
return res.Stdout()
}

Expand Down

0 comments on commit ba99914

Please sign in to comment.