Skip to content

Commit 041586b

Browse files
committed
fix: vote time sleep
1 parent 0dc47ce commit 041586b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/conftest.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,9 @@ def execute_votes(accounts, vote_ids, dao_voting, topup="10 ether"):
129129
dao_voting.vote(vote_id, True, False, {"from": account})
130130

131131
# wait for the vote to end
132-
print("HERE1", dao_voting.getVote(vote_id)["startDate"], get_vote_duration(), chain.time())
133-
time_to_end = dao_voting.getVote(vote_id)["startDate"] + get_vote_duration() - chain.time()
134-
print("HERE2", time_to_end)
135-
if time_to_end > 0:
136-
print("HERE3", "sleep")
137-
chain.sleep(time_to_end)
132+
# time_to_end = dao_voting.getVote(vote_id)["startDate"] + get_vote_duration() - chain.time()
133+
chain.sleep(get_vote_duration())
138134
chain.mine()
139-
print("HERE4", "mine", vote_ids)
140135

141136
for vote_id in vote_ids:
142137
assert dao_voting.canExecute(vote_id)

0 commit comments

Comments
 (0)