Skip to content

Commit

Permalink
test store: Make TestGlobalStore.doInsertAccount not drop ackedPushToken
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisbobbe authored and gnprice committed Nov 14, 2024
1 parent 38213a8 commit fcccb94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/model/test_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class TestGlobalStore extends GlobalStore {
zulipFeatureLevel: data.zulipFeatureLevel.value,
zulipVersion: data.zulipVersion.value,
zulipMergeBase: data.zulipMergeBase.value,
ackedPushToken: data.ackedPushToken.value,
);
}

Expand Down

0 comments on commit fcccb94

Please sign in to comment.