summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-09 13:36:56 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commita04e7be83a186826451506320f03de626b12217d (patch)
tree0676caf23325d397fd5c6e1374838f88602b0c44
parented4c53b628e6dcf31347493b99ea34719032b075 (diff)
tests: use different website for ecore_test_ecore_file_download
Summary: while it may be the case that we do not control example.com, it is also the case that loading anything from enlightenment.org takes 10+ seconds longer (at minimum) than loading example.com ref T6853 Depends on D5884 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6853 Differential Revision: https://phab.enlightenment.org/D5885
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index 9ec21a1bbf..118d359504 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -479,7 +479,7 @@ EFL_START_TEST(ecore_test_ecore_file_download)
479{ 479{
480 const char *download_dir; 480 const char *download_dir;
481 const char *download_file; 481 const char *download_file;
482 const char *download_url = "http://www.enlightenment.org/feed.php"; 482 const char *download_url = "http://example.com";
483 char dest_name[MAXSIZE] = {'\0'}; 483 char dest_name[MAXSIZE] = {'\0'};
484 Eina_Bool res; 484 Eina_Bool res;
485 Eina_Hash *headers; 485 Eina_Hash *headers;
@@ -491,7 +491,7 @@ EFL_START_TEST(ecore_test_ecore_file_download)
491 491
492 download_dir = get_tmp_dir(); 492 download_dir = get_tmp_dir();
493 fail_if(!download_dir); 493 fail_if(!download_dir);
494 download_file = ecore_file_file_get(download_url); 494 download_file = ecore_file_file_get(download_url); //example.com
495 fail_if(!download_file); 495 fail_if(!download_file);
496 fail_if(!ecore_file_download_protocol_available("http://")); 496 fail_if(!ecore_file_download_protocol_available("http://"));
497 strcat(dest_name, download_dir); 497 strcat(dest_name, download_dir);
@@ -522,7 +522,7 @@ EFL_START_TEST(ecore_test_ecore_file_download)
522 fail_if(res != EINA_TRUE); 522 fail_if(res != EINA_TRUE);
523 523
524 headers = eina_hash_string_small_new(NULL); 524 headers = eina_hash_string_small_new(NULL);
525 eina_hash_add(headers, "Content-type", "text/xml"); 525 eina_hash_add(headers, "Content-type", "text/html");
526 526
527 res = ecore_file_download_full(download_url, dest_name, completion_cb, 527 res = ecore_file_download_full(download_url, dest_name, completion_cb,
528 progress_cb, NULL, NULL, headers); 528 progress_cb, NULL, NULL, headers);