diff --git a/tests/pass_through_tests/test_vertex_ai.py b/tests/pass_through_tests/test_vertex_ai.py index 747cc2723d2..7cef6dc31ca 100644 --- a/tests/pass_through_tests/test_vertex_ai.py +++ b/tests/pass_through_tests/test_vertex_ai.py @@ -163,7 +163,13 @@ async def get_request_spend_log( if float(row.get("spend") or 0.0) <= 0: continue row_start = _parse_spend_log_start_time(row.get("startTime")) - if row_start is not None and row_start >= after_time: + if row_start is None: + print( + f"matching row has unparseable startTime {row.get('startTime')!r}", + row, + ) + continue + if row_start >= after_time: print(f"found spend log (elapsed={elapsed}s)", row) return row return None