Skip to content

Commit

Permalink
Try to delay a little when reading frame counters
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 16, 2024
1 parent 347b54b commit fc0ac12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tools/test_network_backup_restore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import asyncio
import dataclasses

import pytest
Expand Down Expand Up @@ -293,6 +294,7 @@ async def test_nwk_frame_counter_zstack30(make_connected_znp):

await security.write_nwk_frame_counter(znp, 0xAABBCCDD)
assert (await security.read_nwk_frame_counter(znp)) == 0xAABBCCDD
await asyncio.sleep(0.1)


async def test_nwk_frame_counter_zstack33(make_connected_znp):
Expand Down Expand Up @@ -333,6 +335,7 @@ async def test_nwk_frame_counter_zstack33(make_connected_znp):

await security.write_nwk_frame_counter(znp, 0x98765432)
assert (await security.read_nwk_frame_counter(znp)) == 0x98765432
await asyncio.sleep(0.1)


def ieee_and_key(text) -> zigpy.state.Key:
Expand Down

0 comments on commit fc0ac12

Please sign in to comment.