test: fix http/autofree_connection

Refs: #182
This commit is contained in:
Azat Khuzhin 2020-05-19 00:52:01 +03:00
parent 8fe35c7614
commit 1cc94feab8

View File

@ -1542,6 +1542,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 */