Skip to content

Commit

Permalink
Fix dotnet Task.Delay
Browse files Browse the repository at this point in the history
  • Loading branch information
batiati committed Jan 26, 2024
1 parent 96319ae commit 713630b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clients/dotnet/TigerBeetle.Tests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ public async Task CreatePendingTransfersAndVoidExpiredAsync()
Assert.AreEqual(lookupAccounts[1].DebitsPosted, (UInt128)0);

// Waiting for the transfer to expire:
await Task.Delay(1000);
// Do not use Task.Delay here as it seems to be less precise.
Thread.Sleep(1000);

var postTransfer = new Transfer
{
Expand Down

0 comments on commit 713630b

Please sign in to comment.