Skip to content

Commit bf0af17

Browse files
Copilotcrickman
andauthored
.NET - Fix flaky workflows test (#4700)
* Initial plan * Fix flaky test: initialize creationTime 1 second in the past Co-authored-by: crickman <66376200+crickman@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
1 parent 1b7940c commit bf0af17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/MessageMergerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class MessageMergerTests
1717
[Fact]
1818
public void Test_MessageMerger_AssemblesMessage()
1919
{
20-
DateTimeOffset creationTime = DateTimeOffset.UtcNow;
20+
DateTimeOffset creationTime = DateTimeOffset.UtcNow.Subtract(TimeSpan.FromSeconds(1));
2121
string responseId = Guid.NewGuid().ToString("N");
2222
string messageId = Guid.NewGuid().ToString("N");
2323

0 commit comments

Comments
 (0)