Skip to content

Commit

Permalink
feat(test): test CounterLock (#425)
Browse files Browse the repository at this point in the history
* feat(test): test CounterLock

* chore: `black .`

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BobTheBuidler and github-actions[bot] authored Nov 22, 2024
1 parent 08bb4d2 commit 2062c02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_counter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest
from a_sync.primitives import CounterLock


@pytest.mark.asyncio_cooperative
async def test_counter_lock():
assert await CounterLock().wait_for(0)

0 comments on commit 2062c02

Please sign in to comment.