Open gilescope opened 1 year ago
Here's another example where we use debug_asserts so I think this is fair game: https://github.com/paritytech/substrate/blob/19eb56a3fc51140b269e339ecb7e9a4a378c26ff/frame/support/src/traits/tokens/fungibles/regular.rs#L549C4-L549C60
Thanks for the feedback. I've switched it to log an error. I wanted there to be some warning/error in the output when someone runs cargo test
. If the log message is just a warning then it's not visible from the command output, so there would be little point. (Could we configure warnings to be displayed when tests are run?)
Had to debug through some code to find out what was going wrong. This will make it obvious for the next person writing a new test and wondering why setting the balance doesn't work.
I've run all the tests in debug mode to make sure they currently all pass: