test: fix http/autofree_connection

Refs: #182
(cherry picked from commit 1cc94feab81e7387041edc32be9843f66847072d)
This commit is contained in:
Azat Khuzhin 2020-05-19 00:52:01 +03:00
parent c297245377
commit ab13087526

View File

@ -1320,6 +1320,9 @@ http_autofree_connection_test(void *arg)
evhttp_connection_free_on_completion(evcon); evhttp_connection_free_on_completion(evcon);
evcon = NULL; evcon = NULL;
// req0
event_base_dispatch(data->base);
// req1
event_base_dispatch(data->base); event_base_dispatch(data->base);
/* at this point, the http server should have no connection */ /* at this point, the http server should have no connection */