diff --git a/tests/main.c b/tests/main.c index 46e9b1cb..41e0b03e 100644 --- a/tests/main.c +++ b/tests/main.c @@ -307,6 +307,8 @@ int main() { !CU_add_test(pSuite, "session_flooding", test_nghttp2_session_flooding) || !CU_add_test(pSuite, "session_change_stream_priority", test_nghttp2_session_change_stream_priority) || + !CU_add_test(pSuite, "session_create_idle_stream", + test_nghttp2_session_create_idle_stream) || !CU_add_test(pSuite, "session_repeated_priority_change", test_nghttp2_session_repeated_priority_change) || !CU_add_test(pSuite, "session_repeated_priority_submission", diff --git a/tests/nghttp2_session_test.c b/tests/nghttp2_session_test.c index b366a6aa..70b1909d 100644 --- a/tests/nghttp2_session_test.c +++ b/tests/nghttp2_session_test.c @@ -10141,7 +10141,7 @@ void test_nghttp2_session_create_idle_stream(void) { /* If pri_spec->stream_id does not exist, and it is idle stream, it is created too */ - nghttp2_priority_spec_init(&pri_spec, 8, 109, 0); + nghttp2_priority_spec_init(&pri_spec, 10, 109, 0); rv = nghttp2_session_create_idle_stream(session, 8, &pri_spec); @@ -10174,7 +10174,7 @@ void test_nghttp2_session_create_idle_stream(void) { CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT == rv); /* It is an error to create non-idle stream */ - session->next_stream_id = 20; + session->last_sent_stream_id = 20; pri_spec.stream_id = 2; rv = nghttp2_session_create_idle_stream(session, 18, &pri_spec);