BTCpayServerTester.WaitIsFullySynched should not wait only NBX (#6740)

This commit is contained in:
Nicolas Dorier
2025-05-20 09:39:02 +09:00
committed by GitHub
parent c526bb667d
commit 40fbdeb0ee

View File

@@ -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<NBXplorerDashboard>();
while (!dashBoard.IsFullySynched())
var o = GetService<IEnumerable<ISyncSummaryProvider>>().ToArray();
while (!o.All(d => d.AllAvailable()))
{
await Task.Delay(10, cancellationToken).ConfigureAwait(false);
}