Skip to content

Commit

Permalink
no lock
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jul 30, 2022
1 parent d8775b9 commit 123ea6c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/conftest.py
@@ -1,7 +1,7 @@
import asyncio
import pytest_asyncio

from httpx import Client, AsyncClient
from httpx import AsyncClient
from lnbits.app import create_app
from lnbits.commands import migrate_databases
from lnbits.settings import HOST, PORT
Expand Down Expand Up @@ -124,9 +124,6 @@ async def adminkey_headers_to(to_wallet):
async def invoice(to_wallet):
data = await get_random_invoice_data()
invoiceData = CreateInvoiceData(**data)
stuff_lock = asyncio.Lock()
async with stuff_lock:
invoice = await api_payments_create_invoice(invoiceData, to_wallet)
# await asyncio.sleep(1)
invoice = await api_payments_create_invoice(invoiceData, to_wallet)
yield invoice
del invoice

0 comments on commit 123ea6c

Please sign in to comment.