Closed felipefdl closed 2 months ago
Try increasing stack size. Release mode does a ton of optimizations that requires a smaller stack.
let runtime = AsyncRuntime::new()?;
runtime.set_max_stack_size(512 * 1024).await;
That worked, thank you @richarddd !
I have some unit test passing on Linux normally, but on Mac it always fail.
I realize if I pass cargo test -r, on release mode, all test is complete with success.
I tested it with my co-work MacBook, same thing.
cargo test
- On macOS failcargo test -r
- On macOS passcargo test
- on Linux, passcargo test -r
- on Linux pass