feat: Move primary transport checked update into "remove transports" transaction

This guarantees that the primary transport is never removed while being in use. At least this way
it's obvious that there are no such corner cases.
This commit is contained in:
iequidoo
2026-01-15 03:36:01 -03:00
parent 3c25e4b726
commit fc069a9b00
4 changed files with 53 additions and 52 deletions

View File

@@ -168,9 +168,6 @@ def test_transport_synchronization(acfactory, log) -> None:
log.section("ac1 changes the primary transport")
ac1.set_config("configured_addr", transport3["addr"])
# One event for updated `add_timestamp` of the new primary transport,
# one event for the `configured_addr` update.
ac1_clone.wait_for_event(EventType.TRANSPORTS_MODIFIED)
ac1_clone.wait_for_event(EventType.TRANSPORTS_MODIFIED)
[transport1, transport3] = ac1_clone.list_transports()
assert ac1_clone.get_config("configured_addr") == addr3