Skip to content

Commit

Permalink
chore(test-vote-by-committee): realistic deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 15, 2024
1 parent fd3dea9 commit d771fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract/test/test-vote-by-committee.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ test.serial('vote to change swap fee', async t => {
const before = await E(swapPub).getAmount('Fee');
t.deepEqual(before, IST(1n, 1_000_000n));

const deadline = 2n;
const deadline = BigInt(new Date(2024, 6, 1, 9, 10).valueOf() / 1000);
const result = await victor.putQuestion('proposeToSetFee', changes, deadline);
t.log('question is posed', result);

Expand All @@ -264,7 +264,7 @@ test.serial('vote to change swap fee', async t => {
t.log('victor voted:', voteResult);

const timer = details.closingRule.timer;
await E(timer).tickN(3);
await E(timer).tickN(11);

// TODO: .latestOutcome from vstorage
const counterHandle = await E(
Expand Down

0 comments on commit d771fa2

Please sign in to comment.