Skip to content

Commit 1aaea30

Browse files
aescolarfabiobaltieri
authored andcommitted
tests/net/lib/lwm2m: Switch description to native_sim
native_posix is deprecated, let's switch the description & comments to refer to native_sim instead. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 4ea6cdf commit 1aaea30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/net/lib/lwm2m/interop/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This directory contains list of testcases that use
44
the Twister's Pytest integration to run testcases against Leshan demo server.
5-
These tests use emulated hardware (native_posix).
5+
These tests use emulated hardware (native_sim).
66

77
These tests require setup that is not done in Twister run, so follow this documentation to set
88
up the test environment.
@@ -105,7 +105,7 @@ Install with `pip install CoAPthon3`
105105
## Running tests
106106

107107
```
108-
twister -p native_posix -vv --enable-slow -T tests/net/lib/lwm2m/interop
108+
twister -p native_sim -vv --enable-slow -T tests/net/lib/lwm2m/interop
109109
```
110110

111111
Or use the Docker based testing

tests/net/lib/lwm2m/interop/pytest/leshan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def get_event_stream(self, endpoint: str, timeout: int = None):
420420
Events are notifications, updates and sends.
421421
422422
The event stream must be closed after the use, so this must be used in 'with' statement like this:
423-
with leshan.get_event_stream('native_posix') as events:
423+
with leshan.get_event_stream('native_sim') as events:
424424
data = events.next_event('SEND')
425425
426426
If timeout happens, the event streams returns None.

0 commit comments

Comments
 (0)