File tree Expand file tree Collapse file tree 2 files changed +0
-45
lines changed
Expand file tree Collapse file tree 2 files changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -106,40 +106,6 @@ async def _unittest_monitor_nodes() -> None:
106106 await asyncio .sleep (3.0 )
107107
108108
109- # noinspection SpellCheckingInspection
110- @pytest .mark .asyncio
111- async def _unittest_monitor_errors () -> None :
112- asyncio .get_running_loop ().slow_callback_duration = 10.0
113- asyncio .get_running_loop ().set_exception_handler (lambda * _ : None )
114-
115- # This time the monitor node is anonymous.
116- task = asyncio .gather (
117- _run_nodes (),
118- _run_zombie (),
119- _delay (_inject_error (), 7.0 ),
120- )
121- cells = [x .split () for x in (await _monitor_and_get_last_screen (30.0 , None )).splitlines ()]
122- task .cancel ()
123- await asyncio .sleep (3.0 )
124-
125- assert cells [1 ][0 ] == "1111"
126- assert cells [1 ][9 ] == "?" # Unable to query
127-
128- assert cells [2 ][0 ] == "1234"
129-
130- assert cells [3 ][0 ] == "2571"
131- assert cells [3 ][4 ] == "zombie"
132-
133- assert cells [4 ][0 ] == "3210"
134-
135- assert cells [5 ][0 ] == "3333"
136-
137- # Error counter
138- assert cells [- 1 ][2 ] == "1"
139-
140- await asyncio .sleep (3.0 )
141-
142-
143109async def _monitor_and_get_last_screen (duration : float , node_id : Optional [int ]) -> str :
144110 args = ["monitor" ]
145111 if node_id is not None :
Original file line number Diff line number Diff line change @@ -36,14 +36,3 @@ def _unittest_publish() -> None:
3636 assert result != 0
3737 assert "period" in stderr .lower ()
3838 assert "seconds" in stderr .lower ()
39-
40- # Transport not configured.
41- result , _ , stderr = execute_cli (
42- "pub" ,
43- "4444:uavcan.si.unit.force.Scalar.1.0" ,
44- "{}" ,
45- timeout = 5.0 ,
46- ensure_success = False ,
47- )
48- assert result != 0
49- assert "transport" in stderr .lower ()
You can’t perform that action at this time.
0 commit comments