Skip to content

Commit

Permalink
Fix fragile unittests
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Aug 13, 2024
1 parent 1cb3db6 commit 36d5d67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acto/checker/impl/tests/test_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ def checker_func(s: Snapshot) -> Optional[OracleResult]:
def test_check(test_case_id, result_dict):
snapshot = load_snapshot("health", test_case_id)
oracle_result = checker_func(snapshot)
assert oracle_result == result_dict
if result_dict is None:
assert oracle_result is None
else:
assert oracle_result is not None

0 comments on commit 36d5d67

Please sign in to comment.