Skip to content

Commit ee0ab71

Browse files
committed
test store: Make TestGlobalStore.doInsertAccount not drop ackedPushToken
Without this line, if a test `globalStore.add`s an account with a non-null `ackedPushToken`, the field will be null in app code or test code that retrieves the account from `globalStore`. Thankfully no tests have been doing that, but it'll be convenient to do that soon, for testing the unregister-token part of logging out.
1 parent 9d6a859 commit ee0ab71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/model/test_store.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class TestGlobalStore extends GlobalStore {
111111
zulipFeatureLevel: data.zulipFeatureLevel.value,
112112
zulipVersion: data.zulipVersion.value,
113113
zulipMergeBase: data.zulipMergeBase.value,
114+
ackedPushToken: data.ackedPushToken.value,
114115
);
115116
}
116117

0 commit comments

Comments
 (0)