aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-13 04:27:37 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-13 05:17:58 +0800
commit2ce2f087420b0471147586fe020ec3368aad8d8b (patch)
treeed8cb32aab05b5b63a97eb528c8f39c6752b5e1f /test
parentbf3682108048fd8646c0388f12ac0647df3099a3 (diff)
downloaddexon-solidity-2ce2f087420b0471147586fe020ec3368aad8d8b.tar.gz
dexon-solidity-2ce2f087420b0471147586fe020ec3368aad8d8b.tar.zst
dexon-solidity-2ce2f087420b0471147586fe020ec3368aad8d8b.zip
Fix some weird zeppelin tests.
Diffstat (limited to 'test')
-rwxr-xr-xtest/externalTests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/externalTests.sh b/test/externalTests.sh
index 11972eae..f707d6db 100755
--- a/test/externalTests.sh
+++ b/test/externalTests.sh
@@ -41,6 +41,13 @@ DIR=$(mktemp -d)
echo "Running Zeppelin tests..."
git clone --depth 1 https://github.com/OpenZeppelin/zeppelin-solidity.git "$DIR"
cd "$DIR"
+
+ # Fix some things that look like bugs (only seemed to fail on Node 6 and not Node 8)
+ # FIXME: report upstream or to web3.js?
+ sed -i -e 's/let token = await ERC827TokenMock.new();//;' test/token/ERC827/ERC827Token.js
+ sed -i -e 's/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0)/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address)/' test/crowdsale/CappedCrowdsale.test.js
+ sed -i -e 's/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, { from: owner })/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address, { from: owner })/' test/crowdsale/RefundableCrowdsale.test.js
+
npm install
find . -name soljson.js -exec cp "$SOLJSON" {} \;