Enable XMR plugin test setup (#6722)

* Enable XMR plugin tests setup

* BTCpayServerTester.WaitIsFullySynched should not wait only NBX
This commit is contained in:
napoly
2025-05-20 00:40:12 +00:00
committed by GitHub
parent 40fbdeb0ee
commit c4097b5ddd

View File

@@ -6,7 +6,6 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;
using OpenQA.Selenium;
using Xunit;
using Xunit.Sdk;
@@ -22,7 +21,8 @@ namespace BTCPayServer.Tests
#endif
public static DirectoryInfo TryGetSolutionDirectoryInfo()
{
var directory = new DirectoryInfo(TestDirectory);
var btcPayDirectory = ((OutputPathAttribute)typeof(TestUtils).Assembly.GetCustomAttributes(typeof(OutputPathAttribute), true)[0]).BuiltPath;
var directory = new DirectoryInfo(btcPayDirectory);
while (directory != null && !directory.GetFiles("*.sln").Any())
{
directory = directory.Parent;
@@ -32,9 +32,9 @@ namespace BTCPayServer.Tests
static TestUtils()
{
TestDirectory = ((OutputPathAttribute)typeof(TestUtils).Assembly.GetCustomAttributes(typeof(OutputPathAttribute), true)[0]).BuiltPath;
TestDirectory = AppContext.BaseDirectory;
}
public readonly static string TestDirectory;
public static readonly string TestDirectory;
public static string GetTestDataFullPath(string relativeFilePath)
{