Skip to content

Commit 42c9350

Browse files
authored
test: OpenAIChatGenerator - relax async test (#9111)
1 parent 1005a5e commit 42c9350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/components/generators/chat/test_openai_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def callback(chunk: StreamingChunk):
337337

338338
# check that the completion_start_time is set and valid ISO format
339339
assert "completion_start_time" in message.meta
340-
assert datetime.fromisoformat(message.meta["completion_start_time"]) < datetime.now()
340+
assert datetime.fromisoformat(message.meta["completion_start_time"]) <= datetime.now()
341341

342342
assert isinstance(message.meta["usage"], dict)
343343
assert message.meta["usage"]["prompt_tokens"] > 0

0 commit comments

Comments
 (0)