mirror of https://github.com/grpc/grpc-java.git
binder: Fix expected result of security test
The test name includes "fails" but it asserts the result is OK. The test was added in #9428. The binder tests are passing on the Android CI, but for some reason the tests with sdk >= 29 are skipped. Robolectric 4.8 claims API level 32 support and the tests are skipped even when using Java 11 and 17.
This commit is contained in:
parent
074e919304
commit
24287b0b14
|
@ -460,7 +460,7 @@ public final class SecurityPoliciesTest {
|
|||
|
||||
policy = SecurityPolicies.isProfileOwnerOnOrganizationOwnedDevice(appContext);
|
||||
|
||||
assertThat(policy.checkAuthorization(OTHER_UID).getCode()).isEqualTo(Status.OK.getCode());
|
||||
assertThat(policy.checkAuthorization(OTHER_UID).getCode()).isEqualTo(Status.PERMISSION_DENIED.getCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue