fix(ci): retain macOS notification test observer

This commit is contained in:
Peter Steinberger
2026-07-13 10:39:21 +01:00
parent 73a0bf4b7c
commit d7a2ec779a

View File

@@ -155,7 +155,9 @@ struct MacNodeModeCoordinatorTests {
nodeHostWorker: worker,
notificationCenter: notificationCenter,
observeNotifications: true)
_ = coordinator
// Notification handlers capture the coordinator weakly. Keep its observer
// alive until both asynchronous restart checks finish.
defer { withExtendedLifetime(coordinator) {} }
notificationCenter.post(name: .openclawConfigDidChange, object: nil)