From 40adf7acd296bd574be2008cc74c7cebd3868e73 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 19 Dec 2023 13:55:33 +0900 Subject: [PATCH] Add flaky test debug statements --- BTCPayServer.Tests/AltcoinTests/AltcoinTests.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/AltcoinTests/AltcoinTests.cs b/BTCPayServer.Tests/AltcoinTests/AltcoinTests.cs index 1e64d18e1..b8ea83f37 100644 --- a/BTCPayServer.Tests/AltcoinTests/AltcoinTests.cs +++ b/BTCPayServer.Tests/AltcoinTests/AltcoinTests.cs @@ -806,7 +806,6 @@ btconly: - BTC normal: price: 1.0"; - vmpos.Template = AppService.SerializeTemplate(MigrationStartupTask.ParsePOSYML(vmpos.Template)); Assert.IsType(pos.UpdatePointOfSale(app.Id, vmpos).Result); try @@ -822,6 +821,19 @@ normal: var noChoiceKey = publicApps.ViewPointOfSale(app.Id, PosViewType.Cart, 1).Result is RedirectToActionResult; TestLogs.LogInformation("RetryOk: " + retryOk); TestLogs.LogInformation("NoChoiceKey: " + retryOk); + var appService = tester.PayTester.GetService(); + var found = await appService.GetApp(app.Id, PointOfSaleAppType.AppType); + TestLogs.LogInformation("Found: " + (found != null)); + if (found is not null) + { + var settings = found.GetSettings(); + TestLogs.LogInformation("settings Found: " + (settings != null)); + if (settings is not null) + { + TestLogs.LogInformation("template Found: " + (settings.Template)); + TestLogs.LogInformation("parsed template Found: " + (AppService.SerializeTemplate(AppService.Parse(settings.Template, false)))); + } + } throw; } Assert.IsType(publicApps