aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-02-13 06:44:13 +0800
committerGitHub <noreply@github.com>2018-02-13 06:44:13 +0800
commit954903b50540456906fd7ba909d7d663e2bd7a7f (patch)
tree19f0a1c50d126ee5717f8d7e3292130828df3fb5
parent8795036919f7a9de4a0ba7d7333a955d2edb78fe (diff)
parent2ce2f087420b0471147586fe020ec3368aad8d8b (diff)
downloaddexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar.gz
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar.bz2
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar.lz
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar.xz
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.tar.zst
dexon-solidity-954903b50540456906fd7ba909d7d663e2bd7a7f.zip
Merge pull request #3489 from ethereum/fixZepplein
Fix some weird zeppelin tests.
-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" {} \;