Skip to content

Commit 4a04560

Browse files
authored
Merge pull request #6183 from csgui/wasm-issue-659/write-attempt-in-readonly
[clarity-wasm-tests] fix test failing with WriteAttemptedInReadOnlyMode
2 parents 6adc670 + ea30487 commit 4a04560

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

clarity/src/vm/tests/contracts.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ fn test_fully_qualified_contract_call(
460460
}
461461
}
462462

463+
// Test not valid for clarity-wasm runtime
464+
// Contracts would error in the static analysis pass.
465+
#[cfg(not(feature = "clarity-wasm"))]
463466
#[apply(test_epochs)]
464467
fn test_simple_naming_system(epoch: StacksEpochId, mut env_factory: MemoryEnvironmentGenerator) {
465468
let mut owned_env = env_factory.get_env(epoch);

clarity/src/vm/tests/traits.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ fn test_reentrant_dynamic_dispatch(
702702
}
703703
}
704704

705+
// Test not valid for clarity-wasm runtime
706+
// Contracts would error in the static analysis pass.
707+
#[cfg(not(feature = "clarity-wasm"))]
705708
#[apply(test_clarity_versions)]
706709
fn test_readwrite_dynamic_dispatch(
707710
version: ClarityVersion,
@@ -759,6 +762,9 @@ fn test_readwrite_dynamic_dispatch(
759762
}
760763
}
761764

765+
// Test not valid for clarity-wasm runtime
766+
// Contracts would error in the static analysis pass.
767+
#[cfg(not(feature = "clarity-wasm"))]
762768
#[apply(test_clarity_versions)]
763769
fn test_readwrite_violation_dynamic_dispatch(
764770
version: ClarityVersion,

0 commit comments

Comments
 (0)