Skip to content

Commit

Permalink
Fix lint problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss authored Apr 29, 2021
1 parent 92c9810 commit c2b8536
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/core/full_node/test_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,12 @@ async def test_valid_my_id(self):
async def test_invalid_seconds_absolute(self):
# TODO: make the test suite not use `time.time` so we can more accurately
# set `time_now` to make it minimal while still failing
blocks = initial_blocks()
time_now = int(time.time()) + 3000
conditions = Program.to(assemble(f"(({ConditionOpcode.ASSERT_SECONDS_ABSOLUTE[0]} {time_now}))"))
await check_conditions(conditions, expected_err=Err.ASSERT_SECONDS_ABSOLUTE_FAILED)

@pytest.mark.asyncio
async def test_valid_seconds_absolute(self):
blocks = initial_blocks()
time_now = int(time.time())
conditions = Program.to(assemble(f"(({ConditionOpcode.ASSERT_SECONDS_ABSOLUTE[0]} {time_now}))"))
await check_conditions(conditions)
Expand Down

0 comments on commit c2b8536

Please sign in to comment.