diff --git a/tests/test_status_panel.py b/tests/test_status_panel.py index ae64f12..c222fd3 100644 --- a/tests/test_status_panel.py +++ b/tests/test_status_panel.py @@ -474,7 +474,8 @@ class TestChecks(unittest.TestCase): self.snap.midi["NA Ingest"]["peers"].pop() self.assertEqual([r.level for _, r in sp.check_midi_wired(chk, self.snap, self.ctx)], [sp.OK]) cfg = json.loads(json.dumps(CONFIG)) - next(t for t in cfg["tiles"] if t["id"] == "midi")["checks"].append(dict(chk)) + midi = next(t for t in cfg["tiles"] if t["id"] == "midi") + midi["checks"] = [c for c in midi["checks"] if c["type"] != "midi_wired"] + [dict(chk)] # one, wherever it came from import schema self.assertEqual([e for e in schema.validate(cfg)[0] if "wired" in e], []) next(t for t in cfg["tiles"] if t["id"] == "midi")["checks"][-1]["nets"] = ["wifi"]