From 123ea6c3834205da3955a38827fb97809d16ad7d Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 30 Jul 2022 20:23:56 +0200 Subject: [PATCH] no lock --- tests/conftest.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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