Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If waiting for push device details and got them persisted, re-emit them. #967

Merged
merged 3 commits into from
Jan 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reset token to nil to avoid affecting other tests via shared rest.
Even though the storage gets refreshed before each test, the token is
cached in the rest instance, so other tests see it.
tcard committed Jan 13, 2020
commit 285a3fb8292ae803d49062d9ae66e803bfda265b
1 change: 1 addition & 0 deletions Spec/PushActivationStateMachine.swift
Original file line number Diff line number Diff line change
@@ -415,6 +415,7 @@ class PushActivationStateMachine : QuickSpec {
storage = MockDeviceStorage(startWith: ARTPushActivationStateWaitingForPushDeviceDetails(machine: initialStateMachine))
rest.internal.storage = storage
rest.device.setAndPersistDeviceToken("foo")
defer { rest.device.setAndPersistDeviceToken(nil) }

var registered = false