diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 679cace2b..5fd023d7d 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -2493,12 +2493,15 @@ noninventoryitem: var user = tester.NewAccount(); user.GrantAccess(); user.RegisterDerivationScheme("BTC"); + DateTimeOffset expiration = DateTimeOffset.UtcNow + TimeSpan.FromMinutes(21); var invoice1 = user.BitPay.CreateInvoice(new Invoice() { Price = 0.000000012m, Currency = "USD", - FullNotifications = true + FullNotifications = true, + ExpirationTime = expiration }, Facade.Merchant); + Assert.Equal(expiration.ToUnixTimeSeconds(), invoice1.ExpirationTime.ToUnixTimeSeconds()); var invoice2 = user.BitPay.CreateInvoice(new Invoice() { Price = 0.000000019m, diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index ae972afda..c99a79948 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -41,7 +41,7 @@ all runtime; build; native; contentfiles; analyzers - + diff --git a/nuget.config b/nuget.config index 6fa16d23e..071facf95 100644 --- a/nuget.config +++ b/nuget.config @@ -3,7 +3,6 @@ -