From 0c4f31794d628e3fb1bbad024bcc8a9f21ef6727 Mon Sep 17 00:00:00 2001 From: d11n Date: Sat, 9 Sep 2023 09:46:09 +0200 Subject: [PATCH] Test fix: Update rate retrieval skipping parameters (#5308) --- BTCPayServer.Tests/ThirdPartyTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BTCPayServer.Tests/ThirdPartyTests.cs b/BTCPayServer.Tests/ThirdPartyTests.cs index 3781d4414..f41f72a75 100644 --- a/BTCPayServer.Tests/ThirdPartyTests.cs +++ b/BTCPayServer.Tests/ThirdPartyTests.cs @@ -179,7 +179,7 @@ namespace BTCPayServer.Tests Assert.Contains(rates, e => e.CurrencyPair == new CurrencyPair("XMR", "BTC") && e.BidAsk.Bid < 1.0m); // Check we didn't skip too many exchanges - Assert.InRange(skipped, 0, 3); + Assert.InRange(skipped, 0, 5); } [Fact] @@ -325,11 +325,11 @@ retry: .Select(c => new CurrencyPair(c.CryptoCode, "USD")) .ToHashSet(); - string[] brokenShitcoins = { "BTG", "BTX" }; + string[] brokenShitcoins = { "BTG", "LCAD" }; bool IsBrokenShitcoin(CurrencyPair p) => brokenShitcoins.Contains(p.Left) || brokenShitcoins.Contains(p.Right); - foreach (var shitcoin in brokenShitcoins) + foreach (var _ in brokenShitcoins) { - foreach (var p in pairs.Where(p => IsBrokenShitcoin(p)).ToArray()) + foreach (var p in pairs.Where(IsBrokenShitcoin).ToArray()) { TestLogs.LogInformation($"Skipping {p} because it is marked as broken"); pairs.Remove(p);