Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
ffb49c6c
Unverified
Commit
ffb49c6c
authored
Feb 20, 2020
by
Tatsuhiro Tsujikawa
Committed by
GitHub
Feb 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1435 from geoffhill/master
Enable session_create_idle_stream test, fix errors
parents
459df42b
866eadb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
tests/main.c
tests/main.c
+2
-0
tests/nghttp2_session_test.c
tests/nghttp2_session_test.c
+2
-2
No files found.
tests/main.c
View file @
ffb49c6c
...
...
@@ -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"
,
...
...
tests/nghttp2_session_test.c
View file @
ffb49c6c
...
...
@@ -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
->
nex
t_stream_id
=
20
;
session
->
last_sen
t_stream_id
=
20
;
pri_spec
.
stream_id
=
2
;
rv
=
nghttp2_session_create_idle_stream
(
session
,
18
,
&
pri_spec
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment