Skip to content

Commit 63f8a93

Browse files
authored
Merge pull request #13304 from ethereum/tmp-fix-zep
Disable zeppelin tests that detect wrong revert reason
2 parents ce5da7d + a1f6a3d commit 63f8a93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/externalTests/zeppelin.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function zeppelin_test
7070
sed -i "s|it(\('reverts \)|it.skip(\1|g" structs/EnumerableSet.behavior.js
7171
popd
7272

73+
7374
# In some cases Hardhat does not detect revert reasons properly via IR.
7475
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2453 gets fixed.
7576
sed -i "s|it(\('reverts if the current value is 0'\)|it.skip(\1|g" test/utils/Counters.test.js
@@ -112,6 +113,11 @@ function zeppelin_test
112113
sed -zi "s|it(\('deposit'\)|it.skip(\1|3" test/token/ERC20/extensions/ERC4626.test.js
113114
sed -zi "s|it(\('withdraw'\)|it.skip(\1|3" test/token/ERC20/extensions/ERC4626.test.js
114115

116+
# Here only the testToInt(248) and testToInt(256) cases fail so change the loop range to skip them
117+
sed -i "s|range(8, 256, 8)\(.forEach(bits => testToInt(bits));\)|range(8, 240, 8)\1|" test/utils/math/SafeCast.test.js
118+
119+
120+
115121
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2115 gets fixed.
116122
sed -i "s|describe\(('Polygon-Child'\)|describe.skip\1|g" test/crosschain/CrossChainEnabled.test.js
117123
sed -i "s|it(\('revert with invalid multi proof #2'\)|it.skip(\1|g" test/utils/cryptography/MerkleProof.test.js

0 commit comments

Comments
 (0)