Skip to content

Commit

Permalink
fix: Wait some time before reading the logs (output stream)
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Jan 4, 2023
1 parent 468a45e commit 3803d69
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace DotNet.Testcontainers.Tests.Unit.Configurations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
Expand Down Expand Up @@ -63,6 +64,9 @@ public async Task HttpWaitStrategySendsHeaders()
var succeeded = await httpWaitStrategy.Until(this.container, NullLogger.Instance)
.ConfigureAwait(false);

await Task.Delay(TimeSpan.FromSeconds(1))
.ConfigureAwait(false);

var (stdout, _) = await this.container.GetLogs()
.ConfigureAwait(false);

Expand Down

0 comments on commit 3803d69

Please sign in to comment.