Skip to content

Commit 2b0b3d4

Browse files
committed
test: keep original test & add ignore flag
1 parent c28b3b4 commit 2b0b3d4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

stackslib/src/clarity_vm/tests/events.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,27 @@ fn test_emit_stx_burn_nok() {
271271
assert!(events.is_empty());
272272
}
273273

274+
#[cfg(not(feature = "clarity-wasm"))]
274275
#[test]
275276
fn test_emit_nested_print_nok() {
277+
let contract = "(define-public (emit-event-nok)
278+
(begin
279+
(print \"bar\")
280+
(err u1)))
281+
(define-public (emit-event-ok)
282+
(begin
283+
(emit-event-nok)
284+
(print \"foo\")
285+
(ok u1)))";
286+
287+
let (value, events) = helper_execute(contract, "emit-event-ok");
288+
assert_eq!(value, Value::okay(Value::UInt(1)).unwrap());
289+
assert_eq!(events.len(), 1);
290+
}
291+
292+
#[cfg(feature = "clarity-wasm")]
293+
#[test]
294+
fn test_emit_nested_print_nok_wasm() {
276295
let contract = "(define-public (emit-event-nok)
277296
(begin
278297
(print \"bar\")

0 commit comments

Comments
 (0)