Skip to content

Commit

Permalink
Merge pull request #1288 from egbertbouman/fix_dht_test
Browse files Browse the repository at this point in the history
Fix pending task error in test_unload_while_contacting_node
  • Loading branch information
egbertbouman committed Mar 7, 2024
2 parents cd5991e + 1040b54 commit 52d5add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
cache: 'pip'
Expand Down
3 changes: 2 additions & 1 deletion ipv8/test/dht/test_community.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ async def test_unload_while_contacting_node(self) -> None:
Test unloading nodes while contacting them.
"""
await self.introduce_nodes()
ensure_future(self.overlay(0).find_nodes(self.key)) # noqa: RUF006
find_task = ensure_future(self.overlay(0).find_nodes(self.key))
await self.overlay(0).unload()
await find_task
self.assertTrue(self.overlay(0).request_cache._shutdown) # noqa: SLF001
self.assertTrue(self.overlay(0)._shutdown) # noqa: SLF001

Expand Down

0 comments on commit 52d5add

Please sign in to comment.