-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: increased maxDataSize for multicall test
Signed-off-by: Logan Nguyen <[email protected]>
- Loading branch information
1 parent
6ad1ff3
commit e33230b
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,9 +263,11 @@ describe('Multicall Test Suite', function () { | |
expect(bytes).to.gte(42624); | ||
}); | ||
|
||
it('should NOT be able to aggregate 115 calls to processLongOutput', async function () { | ||
const n = 115; | ||
const maxDataSize = 25 * 1024 * 2; // 25 kb | ||
it('should NOT be able to aggregate 585 calls to processLongOutput', async function () { | ||
// @note: since [email protected], the maximum data size was increased to 128 KiB. | ||
const maxDataSize = 128 * 1024 * 2; // 262144 characters - 128 KiB | ||
const n = 585; // 262218 characters ~ 128.03 KiB | ||
|
||
let hasError = false; | ||
try { | ||
await multicallProcessLongOutput(n); | ||
|
@@ -275,7 +277,7 @@ describe('Multicall Test Suite', function () { | |
expect(e.message).to.exist; | ||
|
||
// Output is too large and the call is reverted. | ||
// The call exceeded the call size limit of 25KB | ||
// The call exceeded the call size limit of 128 KiB | ||
const EXPECTED_ERROR_MESSAGE = `exceeds ${maxDataSize} characters`; | ||
expect(e.message).to.contain(EXPECTED_ERROR_MESSAGE); | ||
} | ||
|