@@ -241,7 +241,7 @@ class MissionControlTests: XCTestCase, MissionControlDelegate {
241241 func confirmRemoteConfigStateAfterNotification( _ notification: String ) {
242242 confirmDidRefreshConfigDelegateCallback ( )
243243
244- let _ = expectation ( forNotification: notification, object: nil ) { ( notification) -> Bool in
244+ let _ = expectation ( forNotification: NSNotification . Name ( rawValue : notification) , object: nil ) { ( notification) -> Bool in
245245 self . confirmRemoteConfigState ( )
246246 return true
247247 }
@@ -378,7 +378,7 @@ class MissionControlTests: XCTestCase, MissionControlDelegate {
378378 MissionControl . launch ( remoteConfigURL: URL . RemoteTestConfig)
379379
380380 let notification = MissionControl . Notification. DidRefreshConfig
381- let _ = expectation ( forNotification: notification, object: nil ) { ( notification) -> Bool in
381+ let _ = expectation ( forNotification: NSNotification . Name ( rawValue : notification) , object: nil ) { ( notification) -> Bool in
382382 ACMissionControl . shared. resetRemote ( )
383383 self . confirmCachedConfigState ( )
384384 return true
@@ -446,7 +446,7 @@ class MissionControlTests: XCTestCase, MissionControlDelegate {
446446 confirmDidFailRefreshingConfigDelegateCallback ( )
447447
448448 let notification = MissionControl . Notification. DidFailRefreshingConfig
449- let _ = expectation ( forNotification: notification, object: nil ) { ( notification) -> Bool in
449+ let _ = expectation ( forNotification: NSNotification . Name ( rawValue : notification) , object: nil ) { ( notification) -> Bool in
450450 guard let errorInfo = notification. userInfo ? [ " Error " ] as? String else { return false }
451451 XCTAssertEqual ( " \( errorInfo) " , " \( error) " , message)
452452 self . confirmInitialState ( )
0 commit comments