Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(native): retain trace diagnostics when observed hits differ

morluto048b79878c70
diff --git a/scripts/verify-native-calls.mjs b/scripts/verify-native-calls.mjs
index 62c9a2b19..7a2262075 100644
--- a/scripts/verify-native-calls.mjs
+++ b/scripts/verify-native-calls.mjs
@@ -95,8 +95,8 @@ const checkScenario = async (binary) => {
});
const greet = result.events.filter(({ symbol }) => symbol === GREET);
const add = result.events.filter(({ symbol }) => symbol === "rea_call_add");
- assert.equal(greet.length, 3);
- assert.equal(add.length, 3);
+ assert.equal(greet.length, 3, JSON.stringify(result));
+ assert.equal(add.length, 3, JSON.stringify(result));
for (const [index, event] of greet.entries()) {
assert.equal(event.receiver_class, "ReaCallGreeter");
assert.equal(event.selector, "greet:times:");