-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Explanation Fixes #5399 This PR addresses the problems outlined in #5399 by: - Ensuring that ``testGetInstallationId_secondAppOpen_providerReturnsSameInstallationIdValue`` and ``testFetchInstallationId_secondAppOpen_returnsSameInstallationIdValue`` are correctly run in a _new_ ``TestApplication`` (as inspired by ``SplashActivityTest``). - Adding a new test to verify that session ID correctly regenerates in a new app instance (``testGetSessionId_secondAppOpen_returnsNewRandomId``) which also has the added benefit of providing confidence that the earlier tests are correctly verifying that the installation ID _isn't_ changing, as expected, on a new app instance. - Improved the tests around cache corruption (via emptying) and deletion to ensure they correctly demonstrate the failure fallbacks (empty/null for corruption and reinitialization for deletion in the same way as a new app install). ## Essential Checklist - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only N/A -- This is fixing a specific test and has no impact on UI behaviors. --------- Co-authored-by: Adhiambo Peres <[email protected]>
- Loading branch information
1 parent
18fa030
commit 3c7713d
Showing
1 changed file
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters