mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix: Payments to Top-Up could be undetected due to race condition (#5568)
This commit is contained in:
@@ -105,8 +105,15 @@ namespace BTCPayServer.Tests
|
||||
|
||||
public void MineBlockOnInvoiceCheckout()
|
||||
{
|
||||
Driver.FindElement(By.CssSelector("#mine-block button")).Click();
|
||||
|
||||
retry:
|
||||
try
|
||||
{
|
||||
Driver.FindElement(By.CssSelector("#mine-block button")).Click();
|
||||
}
|
||||
catch (StaleElementReferenceException)
|
||||
{
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user