Skip to content

Commit 78c844e

Browse files
authored
Merge pull request #501 from PolymathNetwork/matm-test-fix
Minor test fix
2 parents a0408c0 + 927990c commit 78c844e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/j_manual_approval_transfer_manager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ contract("ManualApprovalTransferManager", accounts => {
6969
const stoKey = 3;
7070

7171
let expiryTimeMA;
72+
let approvalTime;
7273

7374
// Initial fee for ticker registry and security token registry
7475
const initRegFee = web3.utils.toWei("250");
@@ -350,11 +351,12 @@ contract("ManualApprovalTransferManager", accounts => {
350351
});
351352

352353
it("Add a manual approval for a 4th investor & return correct length", async () => {
354+
approvalTime = latestTime() + duration.days(1);
353355
await I_ManualApprovalTransferManager.addManualApproval(
354356
account_investor1,
355357
account_investor4,
356358
web3.utils.toWei("3", "ether"),
357-
latestTime() + duration.days(1),
359+
approvalTime,
358360
"DESCRIPTION",
359361
{
360362
from: token_owner
@@ -374,7 +376,7 @@ contract("ManualApprovalTransferManager", accounts => {
374376
console.log("2");
375377
assert.equal(tx[2][0], web3.utils.toWei("3"));
376378
console.log("3");
377-
assert.equal(tx[3][0].toNumber(), latestTime() + duration.days(1));
379+
assert.equal(tx[3][0].toNumber(), approvalTime);
378380
console.log("4");
379381
assert.equal(web3.utils.toUtf8(tx[4][0]), "DESCRIPTION");
380382
})

0 commit comments

Comments
 (0)