Open Arrowana opened 3 years ago
@Arrowana , do you by chance still have code that exemplifies this issue?
Want to test new BanksClient api that should fail fast.
(edit) Nevermind! I ended up writing something
@Arrowana , it looks to me like this is only a problem with cargo test
(program loaded as native), and that cargo test-bpf
does not exhibit this. Can you please confirm?
That was a long time ago, can't remember how to cause it.
Yes, it seems like this was only happening for cargo test
Problem
Setup
Let's say I do something stupid that will panic in the program
The output is:
I waited 60 seconds to get this, most likely developer will assume it deadlocked way before that and kill the process (I did), losing all opportunity to understand what went wrong.
Proposed Solution
If something bad occurs in the program, the
banks_client.process_transaction
immediately returns and provides this useful backtrace