Merge "Merge remote branch 'korg/froyo' into gingerbread" into gingerbread

This commit is contained in:
Brian Muramatsu
2011-01-18 10:47:50 -08:00
committed by Android Code Review

View File

@@ -143,8 +143,8 @@ public class ConnectivityManagerTest extends AndroidTestCase {
NetworkInfo[] ni = mCm.getAllNetworkInfo();
for (NetworkInfo n : ni) {
// make sure network is up
if (n.isConnected()) {
// make sure network is up (except WIFI due to always fail)
if (n.isConnected() && (n.getType() != TYPE_WIFI)) {
assertTrue(mCm.requestRouteToHost(n.getType(), HOST_ADDRESS));
}
}