mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 14:11:42 +00:00
fix(ci): retain macOS notification test observer
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user