Skip to content

Commit 5b3546e

Browse files
committed
names
1 parent 0e1eee6 commit 5b3546e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/service-library/tests/test_logging_errors.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ class MyError(OsparcErrorMixin, RuntimeError):
2121
exc = exc_info.value
2222
error_code = create_error_code(exc)
2323

24-
fp1, ts1 = parse_error_code_parts(error_code)
25-
fp2, ts2 = parse_error_code_parts(exc.error_code())
26-
assert fp1 == fp2
27-
assert ts1 <= ts2
24+
eoc1_fingerprint, eoc1_snapshot = parse_error_code_parts(error_code)
25+
eoc2_fingerprint, eoc2_snapshot = parse_error_code_parts(exc.error_code())
26+
27+
assert eoc1_fingerprint == eoc2_fingerprint
28+
assert eoc1_snapshot <= eoc2_snapshot
2829

2930
msg = f"Nice message to user [{error_code}]"
3031

0 commit comments

Comments
 (0)