diff --git a/BTCPayServer.Tests/BTCPayServerTester.cs b/BTCPayServer.Tests/BTCPayServerTester.cs index b339d56d8..643ba9ad6 100644 --- a/BTCPayServer.Tests/BTCPayServerTester.cs +++ b/BTCPayServer.Tests/BTCPayServerTester.cs @@ -8,6 +8,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; using BTCPayServer.Abstractions.Constants; +using BTCPayServer.Abstractions.Contracts; using BTCPayServer.Configuration; using BTCPayServer.HostedServices; using BTCPayServer.Hosting; @@ -260,8 +261,8 @@ namespace BTCPayServer.Tests private async Task WaitIsFullySynched(CancellationToken cancellationToken) { - var dashBoard = GetService(); - while (!dashBoard.IsFullySynched()) + var o = GetService>().ToArray(); + while (!o.All(d => d.AllAvailable())) { await Task.Delay(10, cancellationToken).ConfigureAwait(false); }