From b3ffb5b299b3bf643492fb5b59c4f544ee5cacd3 Mon Sep 17 00:00:00 2001 From: elenadimitrova Date: Mon, 16 Mar 2020 17:59:33 +0200 Subject: [PATCH] Temp fix to workaround LimeChain/etherlime#315 --- test/simpleUpgrader.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/simpleUpgrader.js b/test/simpleUpgrader.js index 347a11c31..a36180919 100644 --- a/test/simpleUpgrader.js +++ b/test/simpleUpgrader.js @@ -25,7 +25,7 @@ describe("Test SimpleUpgrader", function () { describe("Registering modules", () => { - it("should register modules in the registry", async () => { + it.only("should register modules in the registry", async () => { let name = "test_1.1"; let initialModule = await deployer.deploy(Module, {}, registry.contractAddress, false, 0); await registry.registerModule(initialModule.contractAddress, ethers.utils.formatBytes32String(name)); @@ -33,11 +33,8 @@ describe("Test SimpleUpgrader", function () { // Here we adjust how we call isRegisteredModule which has 2 overlaods, one accepting a single address // and a second accepting an array of addresses. Behaviour as to which overload is selected to run // differs between CI and Coverage environments, adjusted for this here - if (process.env.CI && process.env.SOLIDITY_COVERAGE) { - isRegistered = await registry.isRegisteredModule([initialModule.contractAddress]); - } else { - isRegistered = await registry.isRegisteredModule(initialModule.contractAddress); - } + isRegistered = await registry["isRegisteredModule(address)"](initialModule.contractAddress); + assert.equal(isRegistered, true, "module1 should be registered"); let info = await registry.moduleInfo(initialModule.contractAddress); assert.equal(ethers.utils.parseBytes32String(info), name, "module1 should be registered with the correct name");