[UTC][connection][Non-ACR][Fix incorrect test scenario] 31/216031/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 18 Oct 2019 10:23:33 +0000 (19:23 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 18 Oct 2019 10:23:33 +0000 (19:23 +0900)
Change-Id: I76db296729eefc9841941287678af6c10bee79e8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/utc/connection/utc-connection-profile.c

index 0b419493990c415e278ba3ed8d34cc811bdb4552..bae2bcfc2cd9c918f774a05ebbda46dc61f1355f 100755 (executable)
@@ -3242,9 +3242,9 @@ int utc_connection_profile_get_internet_state_p(void)
                CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
        }
 
-       int ret = connection_get_current_profile(connection, &profile_temp);
-       CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
-       ret = connection_profile_get_internet_state(profile_temp, &internet_state);
+       connection_profile_h profile_h = NULL;
+       int ret = test_get_any_profile(&profile_h);
+       ret = connection_profile_get_internet_state(profile_h, &internet_state);
        CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NONE);
 
        return 0;
@@ -3286,9 +3286,9 @@ int utc_connection_profile_get_internet_state_n2(void)
                CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
        }
 
-       int ret = connection_get_current_profile(connection, &profile_temp);
-       CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
-       ret = connection_profile_get_internet_state(profile_temp, NULL);
+       connection_profile_h profile_h = NULL;
+       int ret = test_get_any_profile(&profile_h);
+       ret = connection_profile_get_internet_state(profile_h, NULL);
        CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_INVALID_PARAMETER);
 
        return 0;