Fix test for clightning overpaying

This commit is contained in:
nicolas.dorier 2020-01-10 11:13:54 +09:00
parent 7efeeb7c28
commit c99d26a55d
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -664,7 +664,9 @@ namespace BTCPayServer.Tests
{
var localInvoice = await user.BitPay.GetInvoiceAsync(invoice.Id);
Assert.Equal("complete", localInvoice.Status);
Assert.Equal("False", localInvoice.ExceptionStatus.ToString());
// C-Lightning may overpay for privacy
Assert.True(localInvoice.ExceptionStatus.ToString() == "False" ||
localInvoice.ExceptionStatus.ToString() == "paidOver", $"Actual:{localInvoice.ExceptionStatus}, Expected:False or paidOver");
});
}