com.android.cts.devicepolicy.ManagedProfileTest
– testAppLinks
junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48)
10-11 11:56:14 I/BaseDevicePolicyTest: Test com.android.cts.intent.sender.AppLinkTest#testTwoReceivers: FAILURE
10-11 11:56:14 W/BaseDevicePolicyTest: junit.framework.AssertionFailedError: expected:<2> but was:<3>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at junit.framework.Assert.assertEquals(Assert.java:205)
at com.android.cts.intent.sender.AppLinkTest.assertNumberOfReceivers(AppLinkTest.java:90)
at com.android.cts.intent.sender.AppLinkTest.testTwoReceivers(AppLinkTest.java:67)
此项目有两个浏览器,Receivers应该是2个但是测试的结果有3个,由于该项目设置了默认的浏览器导致返回3个Receivers,不要设置默认浏览器即可pass