fix: lndrest nodemanager get_channel (flaky ci decoy) (#2877)

This commit is contained in:
dni ⚡ 2025-01-09 17:04:32 +01:00 committed by GitHub
parent 6f3d0edfbd
commit 7e27b2c6f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 6 deletions

View file

@ -106,14 +106,12 @@ async def test_get_channel(node_client):
response = await node_client.get("/node/api/v1/channels")
assert response.status_code == 200
channels = parse_obj_as(list[NodeChannel], response.json())
ch = random.choice(
[channel for channel in channels if channel.state == ChannelState.ACTIVE]
)
assert ch, "No active channel found"
assert ch.point, "No channel point found"
await asyncio.sleep(3)
response = await node_client.get(f"/node/api/v1/channels/{ch.id}")
assert response.status_code == 200
@ -140,7 +138,6 @@ async def test_set_channel_fees(node_client):
)
assert response.status_code == 200
await asyncio.sleep(3)
response = await node_client.get(f"/node/api/v1/channels/{ch.id}")
assert response.status_code == 200
channel = parse_obj_as(NodeChannel, response.json())