Skip to content

Commit c81aea9

Browse files
disable snapshot capture in alloc tests because containing the wasm binary they aren't reproducible across hosts
1 parent b41f0bc commit c81aea9

File tree

3 files changed

+4
-203
lines changed

3 files changed

+4
-203
lines changed

tests/alloc/src/test.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg(test)]
2-
use soroban_sdk::{vec, Env};
2+
use soroban_sdk::{vec, Env, testutils::EnvTestConfig};
33

44
use crate::{Contract, ContractClient};
55

@@ -16,7 +16,9 @@ macro_rules! tests {
1616

1717
#[test]
1818
fn test() {
19-
let e = Env::default();
19+
let e = Env::new_with_config(EnvTestConfig {
20+
capture_snapshot_at_drop: false,
21+
});
2022
let contract_id = e.register($contract, ());
2123
let client = ContractClient::new(&e, &contract_id);
2224

tests/alloc/test_snapshots/test/native/test.1.json

Lines changed: 0 additions & 76 deletions
This file was deleted.

tests/alloc/test_snapshots/test/wasm/test.1.json

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)