stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a04e7be83a186826451506320f03de626b12217d

commit a04e7be83a186826451506320f03de626b12217d
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 9 13:36:56 2018 +0200

    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
---
 src/tests/ecore/ecore_test_ecore_file.c | 6 +++---
 1 file 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)
 {
    const char *download_dir;
    const char *download_file;
-   const char *download_url = "http://www.enlightenment.org/feed.php";;
+   const char *download_url = "http://example.com";;
    char dest_name[MAXSIZE] = {'\0'};
    Eina_Bool res;
    Eina_Hash *headers;
@@ -491,7 +491,7 @@ EFL_START_TEST(ecore_test_ecore_file_download)
 
    download_dir = get_tmp_dir();
    fail_if(!download_dir);
-   download_file = ecore_file_file_get(download_url);
+   download_file = ecore_file_file_get(download_url); //example.com
    fail_if(!download_file);
    fail_if(!ecore_file_download_protocol_available("http://";));
    strcat(dest_name, download_dir);
@@ -522,7 +522,7 @@ EFL_START_TEST(ecore_test_ecore_file_download)
    fail_if(res != EINA_TRUE);
 
    headers = eina_hash_string_small_new(NULL);
-   eina_hash_add(headers, "Content-type", "text/xml");
+   eina_hash_add(headers, "Content-type", "text/html");
 
    res = ecore_file_download_full(download_url, dest_name, completion_cb,
                                   progress_cb, NULL, NULL, headers);

-- 


Reply via email to