Skip to content

Commit

Permalink
[#NON] #CHANGE 'assemblyName: DotNet.Testcontainers.Tests; function: …
Browse files Browse the repository at this point in the history
…WaitStrategyDelayForFiveSecondsFixture'

{Return Task.FromResult.}
  • Loading branch information
HofmeisterAn committed Sep 10, 2020
1 parent 202d7e7 commit 5967a97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WaitStrategyDelayForFiveSecondsFixture : IWaitUntil

public Task<bool> Until(Uri endpoint, string id)
{
return Task.Run(() => new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds() > this.timestamp + 5);
return Task.FromResult(new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds() > this.timestamp + 5);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public async Task WhileImmediately()

public Task<bool> Until(Uri endpoint, string id)
{
return Task.Run(() => true);
return Task.FromResult(true);
}

public Task<bool> While(Uri endpoint, string id)
{
return Task.Run(() => false);
return Task.FromResult(false);
}
}

Expand Down

0 comments on commit 5967a97

Please sign in to comment.