diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index aeb2988..0056a4d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -42,6 +42,12 @@ jobs: - name: Set up BTCPay integration test environment uses: ./.github/actions/prepare-integration-test-env + - name: Increase inotify instance limit + run: | + if [ "$(sysctl -n fs.inotify.max_user_instances)" -lt 1024 ]; then + sudo sysctl -w fs.inotify.max_user_instances=1024 + fi + - name: Run integration tests env: XUNIT_EXPLICIT_MODE: ${{ github.event_name == 'pull_request' && 'off' || 'on' }} diff --git a/BTCPayServer.Plugins.Payjoin.IntegrationTests/TestUtils/BitcoindNodeOptions.cs b/BTCPayServer.Plugins.Payjoin.IntegrationTests/TestUtils/BitcoindNodeOptions.cs index 2192ce5..459e0fb 100644 --- a/BTCPayServer.Plugins.Payjoin.IntegrationTests/TestUtils/BitcoindNodeOptions.cs +++ b/BTCPayServer.Plugins.Payjoin.IntegrationTests/TestUtils/BitcoindNodeOptions.cs @@ -14,6 +14,6 @@ internal sealed record BitcoindNodeOptions public TimeSpan SyncTimeout { get; init; } = TimeSpan.FromMinutes(1); public TimeSpan PollInterval { get; init; } = TimeSpan.FromMilliseconds(250); public Money FundingAmount { get; init; } = Money.Coins(0.15m); - public string? DockerNetwork { get; init; } - public string PrimaryNodeEndpoint { get; init; } = "host.docker.internal:39388"; + public string? DockerNetwork { get; init; } = "btcpayservertests_default"; + public string PrimaryNodeEndpoint { get; init; } = "bitcoind:39388"; } diff --git a/BTCPayServer.Plugins.Payjoin/BTCPayServer.Plugins.AsyncPayjoin.csproj b/BTCPayServer.Plugins.Payjoin/BTCPayServer.Plugins.AsyncPayjoin.csproj index 729a9ea..3f61bca 100644 --- a/BTCPayServer.Plugins.Payjoin/BTCPayServer.Plugins.AsyncPayjoin.csproj +++ b/BTCPayServer.Plugins.Payjoin/BTCPayServer.Plugins.AsyncPayjoin.csproj @@ -73,6 +73,7 @@ + diff --git a/Directory.Packages.props b/Directory.Packages.props index 154a905..4eaebe7 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -16,6 +16,7 @@ +