Skip to content

Commit

Permalink
Addressing more feedbck in the workflow e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
  • Loading branch information
RyanLettieri committed Nov 5, 2023
1 parent 2f5f3f4 commit 3917fb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/Dapr.E2E.Test/Workflows/WorkflowTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async Task TestWorkflowLogging()
using (StreamReader reader = new StreamReader(logFilePath))
{
string line;
while ((line = await reader.ReadLineAsync()) != null)
while ((line = await reader.ReadLineAsync().WaitAsync(cts.Token)) != null)
{
foreach (var entry in logStrings)
{
Expand All @@ -73,10 +73,10 @@ public async Task TestWorkflowLogging()
finally
{
File.Delete(logFilePath);
if (!allLogsFound)
{
Assert.True(false, "The logs were not able to found within the timeout");
}
}
if (!allLogsFound)
{
Assert.True(false, "The logs were not able to found within the timeout");
}
}
[Fact]
Expand Down

0 comments on commit 3917fb9

Please sign in to comment.