Skip to content

Commit a4c4b69

Browse files
authored
loosen timestamp comparison (Azure#49016)
1 parent 218a959 commit a4c4b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/openai/Azure.AI.OpenAI/tests/ResponsesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public async Task ResponsesHelloWorldWithTool(string deploymentName)
257257
options);
258258

259259
Assert.That(response.Id, Is.Not.Null.And.Not.Empty);
260-
Assert.That(response.CreatedAt, Is.GreaterThan(DateTimeOffset.Now - TimeSpan.FromDays(1)));
260+
Assert.That(response.CreatedAt, Is.GreaterThan(new DateTimeOffset(2025, 1, 1, 0, 0, 0, TimeSpan.Zero)));
261261
// Assert.That(response.Status, Is.EqualTo(ResponsesStatus.Completed));
262262
Assert.That(response.Model, Is.Not.Null.And.Not.Empty);
263263
Assert.That(response.PreviousResponseId, Is.Null);

0 commit comments

Comments
 (0)