Fix failing GameManagerServiceTests
The following tests are currently failing: - com.android.server.app.GameManagerServiceTests#testDeviceConfigInvalid - com.android.server.app.GameManagerServiceTests#testSetGameModePermissionDenied - This is actually flaky, rather than consistently failing. testDeviceConfigInvalid is failing because the current config string is actually valid. This test is fixed by updating the string to actually be invalid by making it empty. testSetGameModePermissionDenied is failing because the test package doesn't have any valid configs, so the call to getGameMode() returns GAME_MODE_UNSUPPORTED rather than GAME_MODE_STANDARD. This is fixed by calling mockDeviceConfigAll() at the start of the test. Test: GameManagerServiceTests#testDeviceConfigInvalid Test: GameManagerServiceTests#testSetGameModePermissionDenied Bug: b/193794028 Change-Id: I4d4581c37c31f6234b825f6b557b1e7dd4ce1c77 (cherry picked from commit f13fe0cc)
Loading
Please register or sign in to comment