tests/ecore-con: fix dns test to use correct ordering

Summary:
it's unclear to me why this test was implemented with the expected
event ordering of SERVER_DEL -> SERVER_ERROR; going as far back
as efl 1.7, the behavior has always been ERROR -> DEL

this fixes the test to verify the expected event ordering on a dns
resolve failure
Depends on D6481

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6482
This commit is contained in:
Mike Blumenkrantz 2018-07-03 12:44:13 -04:00 committed by Chris Michael
parent 683cddf90c
commit 3c8bc31e75
1 changed files with 1 additions and 2 deletions

View File

@ -182,7 +182,6 @@ _dns_err(void *data, int type EINA_UNUSED, void *ev EINA_UNUSED)
{
Eina_Bool *err_check = data;
*err_check = EINA_TRUE;
ecore_main_loop_quit();
return ECORE_CALLBACK_RENEW;
}
@ -479,7 +478,7 @@ EFL_START_TEST(ecore_test_ecore_con_dns)
ecore_con_server_timeout_set(client, 5.0);
ecore_main_loop_begin();
fail_if (err_check == EINA_FALSE);
fail_if (err_check != EINA_FALSE);
fail_if (ecore_event_handler_del(e_err) != (void *) &err_check);
fail_if (ecore_event_handler_del(e_add) != (void *) &err_check);
}