Skip to content

Commit 36d5d67

Browse files
committed
Fix fragile unittests
Signed-off-by: Tyler Gu <[email protected]>
1 parent 1cb3db6 commit 36d5d67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

acto/checker/impl/tests/test_health.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ def checker_func(s: Snapshot) -> Optional[OracleResult]:
6161
def test_check(test_case_id, result_dict):
6262
snapshot = load_snapshot("health", test_case_id)
6363
oracle_result = checker_func(snapshot)
64-
assert oracle_result == result_dict
64+
if result_dict is None:
65+
assert oracle_result is None
66+
else:
67+
assert oracle_result is not None

0 commit comments

Comments
 (0)