Skip to content

Commit

Permalink
Update tests/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Quinna Halim <[email protected]>
  • Loading branch information
wantsui and quinna-h authored Nov 15, 2024
1 parent 46ab3a4 commit 730a916
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,7 @@ def _should_skip(condition=None, until: int = None):
until = dt.datetime.fromtimestamp(until)
if until and dt.datetime.utcnow() < until.replace(tzinfo=None):
return True
if condition is not None and condition:
return True
return False
return condition is not None and condition


def flaky(until: int = None, condition: bool = None, reason: str = None):
Expand Down

0 comments on commit 730a916

Please sign in to comment.