diff --git a/tests/conftest.py b/tests/conftest.py index 58fa286d75..e3e2443f2a 100644 --- a/tests/conftest.py +++ b/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 @@ -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