MCPcopy
hub / github.com/microsoft/agent-lightning / test_pop_empty_queue

Function test_pop_empty_queue

tests/store/test_core.py:647–654  ·  view source on GitHub ↗

Test popping from empty queue returns None.

(store_fixture: LightningStore)

Source from the content-addressed store, hash-verified

645
646@pytest.mark.asyncio
647async def test_pop_empty_queue(store_fixture: LightningStore) -> None:
648 """Test popping from empty queue returns None."""
649 result = await store_fixture.dequeue_rollout()
650 assert result is None
651
652 # Multiple pops should all return None
653 for _ in range(3):
654 assert await store_fixture.dequeue_rollout() is None
655
656
657@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

dequeue_rolloutMethod · 0.45

Tested by

no test coverage detected