Skip to content

Commit

Permalink
afasfasffs
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-li committed Jun 24, 2024
1 parent db53637 commit df63d6f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ final class OSLiveActivitiesExecutorTests: XCTestCase {
OneSignalCoreImpl.setSharedClient(mockClient)
OneSignalUserDefaults.initShared().saveString(forKey: OSUD_LEGACY_PLAYER_ID, withValue: "my-subscription-id")
OneSignalUserManagerImpl.sharedInstance.start()
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 0.2, client: mockClient)
mockClient.reset()

let request = OSRequestSetStartToken(key: "my-activity-type", token: "my-token")
Expand Down Expand Up @@ -279,6 +280,7 @@ final class OSLiveActivitiesExecutorTests: XCTestCase {
OneSignalCoreImpl.setSharedClient(mockClient)
OneSignalUserDefaults.initShared().saveString(forKey: OSUD_LEGACY_PLAYER_ID, withValue: "my-subscription-id")
OneSignalUserManagerImpl.sharedInstance.start()
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 0.2, client: mockClient)
mockClient.reset()

let request1 = OSRequestSetStartToken(key: "my-activity-type", token: "my-token-1")
Expand Down Expand Up @@ -306,6 +308,7 @@ final class OSLiveActivitiesExecutorTests: XCTestCase {
OneSignalCoreImpl.setSharedClient(mockClient)
OneSignalUserDefaults.initShared().saveString(forKey: OSUD_LEGACY_PLAYER_ID, withValue: "my-subscription-id")
OneSignalUserManagerImpl.sharedInstance.start()
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 0.2, client: mockClient)
mockClient.reset()

let request1 = OSRequestSetUpdateToken(key: "my-activity-id", token: "my-token")
Expand Down Expand Up @@ -362,6 +365,7 @@ final class OSLiveActivitiesExecutorTests: XCTestCase {
OneSignalCoreImpl.setSharedClient(mockClient)
OneSignalUserDefaults.initShared().saveString(forKey: OSUD_LEGACY_PLAYER_ID, withValue: "my-subscription-id")
OneSignalUserManagerImpl.sharedInstance.start()
OneSignalCoreMocks.waitForBackgroundThreads(seconds: 0.2, client: mockClient)
mockClient.reset()

let request1 = OSRequestSetUpdateToken(key: "my-activity-id", token: "my-token-1")
Expand Down

0 comments on commit df63d6f

Please sign in to comment.