From 3048bb9d90c9f384100c528436579f2201652451 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 25 Nov 2015 22:18:54 +0900 Subject: [PATCH] Fix test: stream_id is not incremented --- tests/nghttp2_session_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/nghttp2_session_test.c b/tests/nghttp2_session_test.c index 45f61d33..da4d3af4 100644 --- a/tests/nghttp2_session_test.c +++ b/tests/nghttp2_session_test.c @@ -7657,13 +7657,12 @@ void test_nghttp2_session_large_dep_tree(void) { nghttp2_session_server_new(&session, &callbacks, NULL); stream_id = 1; - for (i = 0; i < 250; ++i) { + for (i = 0; i < 250; ++i, stream_id += 2) { dep_stream = open_stream_with_dep(session, stream_id, dep_stream); - stream_id += 2; } stream_id = 1; - for (i = 0; i < 250; ++i) { + for (i = 0; i < 250; ++i, stream_id += 2) { stream = nghttp2_session_get_stream(session, stream_id); CU_ASSERT(nghttp2_stream_dep_find_ancestor(stream, &session->root)); CU_ASSERT(nghttp2_stream_in_dep_tree(stream));