Skip to content

Commit e2eb210

Browse files
remove fragile tests
1 parent 860b29d commit e2eb210

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

tests/cmd/monitor.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff 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-
143109
async def _monitor_and_get_last_screen(duration: float, node_id: Optional[int]) -> str:
144110
args = ["monitor"]
145111
if node_id is not None:

tests/cmd/publish/basic.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)