Merge "Use assertEquals instead of assertTrue to compare the vpn type"
This commit is contained in:
commit
56055496f3
1 changed files with 1 additions and 1 deletions
|
|
@ -760,7 +760,7 @@ public class VpnTest extends InstrumentationTestCase {
|
|||
assertEquals(vpnNetwork, mCM.getActiveNetwork());
|
||||
assertNotEqual(defaultNetwork, vpnNetwork);
|
||||
maybeExpectVpnTransportInfo(vpnNetwork);
|
||||
assertTrue(mCM.getNetworkInfo(vpnNetwork).getType() == TYPE_VPN);
|
||||
assertEquals(TYPE_VPN, mCM.getNetworkInfo(vpnNetwork).getType());
|
||||
|
||||
if (SdkLevel.isAtLeastS()) {
|
||||
// Check that system default network callback has not seen any network changes, even
|
||||
|
|
|
|||
Loading…
Reference in a new issue