From 2613f60a23240b1770e4a5f9869278d232f6d739 Mon Sep 17 00:00:00 2001 From: Mudit Gupta Date: Tue, 19 Feb 2019 15:57:38 +0530 Subject: [PATCH] changes to accomodate different web3 versions --- test/o_security_token.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/o_security_token.js b/test/o_security_token.js index 069dcf3fe..24f29d4e6 100644 --- a/test/o_security_token.js +++ b/test/o_security_token.js @@ -1330,10 +1330,14 @@ contract("SecurityToken", async (accounts) => { Controller address from the contract: ${await stGetter.controller.call()} Controller address from the storage: ${await readStorage(I_SecurityToken.address, 7)} `) - - assert.equal( - (await stGetter.controller.call()).substring(0, 4), - await readStorage(I_SecurityToken.address, 7) + // Different versions of web3 behave differently :/ + assert.oneOf( + await readStorage(I_SecurityToken.address, 7), + [ + (await stGetter.controller.call()).substring(0, 4), + (await stGetter.controller.call()).substring(0, 3), + await stGetter.controller.call() + ] ); console.log(`