From caf1d864a322140478307fd45540a820447902d1 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Wed, 5 Apr 2023 15:49:31 +0000 Subject: [PATCH] this better work and ignore wasm tests --- cpp/src/aztec3/circuits/rollup/merge/.test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/src/aztec3/circuits/rollup/merge/.test.cpp b/cpp/src/aztec3/circuits/rollup/merge/.test.cpp index 6d4cd6f5..66440a81 100644 --- a/cpp/src/aztec3/circuits/rollup/merge/.test.cpp +++ b/cpp/src/aztec3/circuits/rollup/merge/.test.cpp @@ -15,6 +15,8 @@ namespace aztec3::circuits::rollup::merge::native_merge_rollup_circuit { class merge_rollup_tests : public ::testing::Test {}; +#ifndef __wasm__ // TODO: temporary hack. WASM doesn't support EXPECT_DEATH or try/catch or EXPECT_THROW so no way to + // test these in wasm. TEST_F(merge_rollup_tests, test_different_rollup_type_fails) { auto mergeInput = dummy_merge_rollup_inputs_with_vk_proof(); @@ -73,6 +75,7 @@ TEST_F(merge_rollup_tests, test_fail_if_previous_rollups_dont_follow_on) }; EXPECT_DEATH(merge_rollup_circuit(inputC), ".*ensure_prev_rollups_follow_on_from_each_other.*"); } +#endif TEST_F(merge_rollup_tests, test_rollup_fields_are_set_correctly) {