Make test wasms in this repo build more consistently.
So that disabling test snapshots does not have to be turned off in tests that use wasms:
|
#[test] |
|
fn test() { |
|
let e = Env::new_with_config(EnvTestConfig { |
|
// Disable test snapshots because the tests in this repo will run across |
|
// multiple hosts, and this test uses a wasm file that won't build consistently |
|
// across different hosts. |
|
capture_snapshot_at_drop: false, |
|
}); |
The wasms in this repos CI are build using vanilla cargo build, which we know does not result in consistent builds.
Note that fixing this is relatively low priority, because most folks only need to build their wasm with one host. The wasms in this repo get built across a variety of hosts as part of multi-platform testing because the users of the SDK use a variety of hosts.
Make test wasms in this repo build more consistently.
So that disabling test snapshots does not have to be turned off in tests that use wasms:
rs-soroban-sdk/tests/alloc/src/test.rs
Lines 15 to 22 in 13263e8
The wasms in this repos CI are build using vanilla cargo build, which we know does not result in consistent builds.
Note that fixing this is relatively low priority, because most folks only need to build their wasm with one host. The wasms in this repo get built across a variety of hosts as part of multi-platform testing because the users of the SDK use a variety of hosts.