From 342a16f75ce6df87a56da15196fe4bb7c4e793ec Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 8 Dec 2016 10:38:24 +0100 Subject: [PATCH] fix tests --- test-browser/vmdebugger.js | 1 + test/init.js | 2 +- test/resources/insertTestWeb3.js | 4 ++-- test/resources/testWeb3.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test-browser/vmdebugger.js b/test-browser/vmdebugger.js index 48c3b4100f..8b074acab6 100644 --- a/test-browser/vmdebugger.js +++ b/test-browser/vmdebugger.js @@ -64,6 +64,7 @@ function panels (browser) { .click('#load') .click('#nextcall') .assertStack(['0x', '0x60', '0x65', '0x38', '0x55', '0x60fe47b1']) + .pause(5000) .assertStorageChanges(['0x000x38']) .assertCallData(['0x60fe47b10000000000000000000000000000000000000000000000000000000000000038']) .assertCallStack(['0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5']) diff --git a/test/init.js b/test/init.js index 46db217f3a..bd8f9114ea 100644 --- a/test/init.js +++ b/test/init.js @@ -2,7 +2,7 @@ var init = { overrideWeb3: function (web3, web3Override) { web3.eth.getCode = web3Override.getCode web3.debug.traceTransaction = web3Override.traceTransaction - web3.debug.storageAt = web3Override.storageAt + web3.debug.storageRangeAt = web3Override.storageRangeAt web3.eth.getTransaction = web3Override.getTransaction web3.eth.getTransactionFromBlock = web3Override.getTransactionFromBlock web3.eth.getBlockNumber = web3Override.getBlockNumber diff --git a/test/resources/insertTestWeb3.js b/test/resources/insertTestWeb3.js index f475de6329..7a87641015 100644 --- a/test/resources/insertTestWeb3.js +++ b/test/resources/insertTestWeb3.js @@ -28,8 +28,8 @@ function loadTestWeb3 (data) { callback(null, data.testTraces[txHash]) } - uiTestweb3.debug.storageAt = function (blockNumber, txIndex, address, callback) { - callback(null, {}) + uiTestweb3.debug.storageRangeAt = function (blockNumber, txIndex, address, start, end, size, callback) { + callback(null, { storage: {}, complete: true }) } uiTestweb3.eth.getTransaction = function (txHash, callback) { diff --git a/test/resources/testWeb3.js b/test/resources/testWeb3.js index 864b27f15e..e5f6b51d4a 100644 --- a/test/resources/testWeb3.js +++ b/test/resources/testWeb3.js @@ -19,7 +19,7 @@ web3Override.debug.traceTransaction = function (txHash, options, callback) { } web3Override.debug.storageRangeAt = function (blockNumber, txIndex, address, start, end, maxSize, callback) { - callback(null, {}) + callback(null, { storage: {}, complete: true }) } web3Override.eth.getTransaction = function (txHash, callback) {