mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-31 10:47:15 +00:00
fix(ci): retain macOS notification test observer
This commit is contained in:
parent
73a0bf4b7c
commit
d7a2ec779a
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue