Skip to content

Commit

Permalink
Try sleep :)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Jul 24, 2024
1 parent 57f273a commit 2a5afc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_ezsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ async def test_ezsp_init(conn_mock, reset_mock, version_mock):
"""Test initialize method."""
zigpy_config = config.CONFIG_SCHEMA({"device": DEVICE_CONFIG})
await ezsp.EZSP.initialize(zigpy_config)
await asyncio.sleep(0.1) # TODO: figure out why this is necessary
assert conn_mock.await_count == 1
assert reset_mock.await_count == 1

Check failure on line 296 in tests/test_ezsp.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.8.14

test_ezsp_init AssertionError: assert 0 == 1 + where 0 = <AsyncMock name='reset' id='139980593846592'>.await_count

Check failure on line 296 in tests/test_ezsp.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_ezsp_init AssertionError: assert 0 == 1 + where 0 = <AsyncMock name='reset' id='140199262071664'>.await_count
assert version_mock.await_count == 1
Expand All @@ -307,6 +308,7 @@ async def test_ezsp_init_failure(conn_mock, close_mock, reset_mock, version_mock
with pytest.raises(RuntimeError):
await ezsp.EZSP.initialize(zigpy_config)

await asyncio.sleep(0.1) # TODO: figure out why this is necessary
assert conn_mock.await_count == 1
assert reset_mock.await_count == 1

Check failure on line 313 in tests/test_ezsp.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.8.14

test_ezsp_init_failure AssertionError: assert 0 == 1 + where 0 = <AsyncMock name='reset' id='139980596479984'>.await_count

Check failure on line 313 in tests/test_ezsp.py

View workflow job for this annotation

GitHub Actions / shared-ci / Run tests Python 3.12

test_ezsp_init_failure AssertionError: assert 0 == 1 + where 0 = <AsyncMock name='reset' id='140199262040864'>.await_count
assert version_mock.await_count == 1
Expand Down

0 comments on commit 2a5afc1

Please sign in to comment.