Some TCs should wait until download is completed.
But, according to network status, download could take a long time.
To avoid the timeout, Use a small size file in cases of below TCs.
utc_download_get_downloaded_file_path_p1
utc_download_get_http_status_p1
Change-Id: Ice38433fd64a9f905851d8ce04a81278121a8c5c
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
#include <system_info.h>
#define API_NAMESPACE "URL_DOWNLOAD_UTC"
-#define DOWNLOAD_TIMEOUT 20000
+#define DOWNLOAD_TIMEOUT 25000
#define DOWNLOAD_FEATURE "tizen.org/feature/download"
#define TELEPHONY_FEATURE "tizen.org/feature/network.telephony"
#define API_NAMESPACE "URL_DOWNLOAD_UTC"
#define TEST_URL "http://download.tizen.org/tct/2.2.1/Manual/Native_TBT_2.2.1_User_Guide_v1.0.pdf"
+#define TEST_URL_SMALL "http://download.tizen.org/tct/tct-download-tizen-tests-image-lq.png"
typedef enum {
DOWNLOAD_SUPPORTED_FEATURE_DOWNLOAD = 0,
if (retcode != DOWNLOAD_ERROR_NONE)
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
- retcode = download_set_url(id, TEST_URL);
+ retcode = download_set_url(id, TEST_URL_SMALL);
if (retcode != DOWNLOAD_ERROR_NONE)
fprintf(stderr, "Cleanup error at %s:%d\n", __FILE__, __LINE__);
if (retcode != DOWNLOAD_ERROR_NONE)
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
- retcode = download_set_url(id, TEST_URL);
+ retcode = download_set_url(id, TEST_URL_SMALL);
if (retcode != DOWNLOAD_ERROR_NONE)
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);