diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-26 10:11:31 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-02-26 10:11:31 +0000 |
commit | f3d12dca45e7bb85e2222a6c0104152a18e04e5f (patch) | |
tree | 68247f873cbe20c794f9aa23f65876eed004fa1e /test/request.c | |
parent | f37f040fe8fefcf8e971f64fe40e9a4c0b8828f3 (diff) | |
download | neon-f3d12dca45e7bb85e2222a6c0104152a18e04e5f.tar.gz |
* test/request.c (hooks): Use many_serve_string to serve the three
responses, to avoid spurious failures.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@951 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/request.c')
-rw-r--r-- | test/request.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/request.c b/test/request.c index ca67c0e..daaa18e 100644 --- a/test/request.c +++ b/test/request.c @@ -1833,11 +1833,12 @@ static int hooks(void) { ne_buffer *buf = ne_buffer_create(); ne_session *sess; + struct many_serve_args args; - CALL(make_session(&sess, single_serve_string, - RESP200 "Content-Length: 0\r\n" "\r\n" - RESP200 "Content-Length: 0\r\n" "\r\n" - RESP200 "Content-Length: 0\r\n" "\r\n")); + args.str = RESP200 "Content-Length: 0\r\n" "\r\n"; + args.count = 3; + + CALL(make_session(&sess, many_serve_string, &args)); ne_hook_create_request(sess, thook_create_req, buf); ne_hook_pre_send(sess, hook_pre_send, buf); |