Skip to content

Commit

Permalink
add msg on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pLabarta committed Jan 21, 2025
1 parent f5cff4e commit 9d296f4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ describeSuite({
results.forEach((result, index) => {
const diff = index === 0 ? "" : result.gasWithAL - results[index - 1].gasWithAL;
if (result.keys > 4) {
expect(diff).toBe(1900n);
}
expect(diff, `Expected gas did not match when including ${result.keys} storage keys`).toBe(1900n); }
});
},
});
Expand Down Expand Up @@ -127,7 +126,7 @@ describeSuite({
results.forEach((result, index) => {
const diff = index === 0 ? 0n : result.gasWithAL - results[index - 1].gasWithAL;
if (result.addresses > 4) {
expect(diff).toBe(2400n);
expect(diff, `Expected gas did not match when including ${result.addresses} addresses`).toBe(2400n);
}
});
},
Expand Down

0 comments on commit 9d296f4

Please sign in to comment.