Skip to content

Commit 9db177d

Browse files
committed
fix error log test
1 parent 6c6c317 commit 9db177d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_input.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def test_import_thermo_parse_metadata():
367367

368368
# Read the error logs
369369
error_logs = parser.get_error_logs()
370-
assert error_logs[0]['message'] == 'm/z: 202.00000'
370+
#assert error_logs[0]['message'] == 'm/z: 202.00000' # This fails as the dictionary is populated in a different order locally or on GIT CI/CD
371+
assert any(entry['message'] == 'm/z: 202.00000' for entry in error_logs.values())
371372

372373
# Read the sample information
373374
sampleinfo = parser.get_sample_information()

0 commit comments

Comments
 (0)