Skip to content

Commit cb137c9

Browse files
committed
Fix test_fetch_identifier for missing optional build_time
If the running test trace server doesn't provide build_time which is optional then the test case fails. This commit fixes it. Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 4f1f8c3 commit cb137c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test_tsp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ def test_fetch_identifier(self):
585585
assert response.status_code == 200
586586
assert response.model
587587
assert response.model.server_version
588-
assert response.model.build_time
588+
# optional field build_time
589+
if response.model.build_time is not None:
590+
assert response.model.build_time
589591
assert response.model.os_name
590592
assert response.model.os_arch
591593
assert response.model.os_version

0 commit comments

Comments
 (0)