Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
33fbaf1a
Commit
33fbaf1a
authored
Apr 23, 2022
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update unit tests
parent
18afeb36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libcaf_net/test/net/http/server.cpp
libcaf_net/test/net/http/server.cpp
+1
-1
libcaf_net/test/net/web_socket/server.cpp
libcaf_net/test/net/web_socket/server.cpp
+1
-1
No files found.
libcaf_net/test/net/http/server.cpp
View file @
33fbaf1a
...
@@ -91,7 +91,7 @@ SCENARIO("the server parses HTTP GET requests into header fields") {
...
@@ -91,7 +91,7 @@ SCENARIO("the server parses HTTP GET requests into header fields") {
auto
&
hdr
=
app
.
hdr
;
auto
&
hdr
=
app
.
hdr
;
CHECK_EQ
(
hdr
.
method
(),
net
::
http
::
method
::
get
);
CHECK_EQ
(
hdr
.
method
(),
net
::
http
::
method
::
get
);
CHECK_EQ
(
hdr
.
version
(),
"HTTP/1.1"
);
CHECK_EQ
(
hdr
.
version
(),
"HTTP/1.1"
);
CHECK_EQ
(
hdr
.
path
(),
"foo/bar"
);
CHECK_EQ
(
hdr
.
path
(),
"
/
foo/bar"
);
CHECK_EQ
(
app
.
field
(
"Host"
),
"localhost:8090"
);
CHECK_EQ
(
app
.
field
(
"Host"
),
"localhost:8090"
);
CHECK_EQ
(
app
.
field
(
"User-Agent"
),
"AwesomeLib/1.0"
);
CHECK_EQ
(
app
.
field
(
"User-Agent"
),
"AwesomeLib/1.0"
);
CHECK_EQ
(
app
.
field
(
"Accept-Encoding"
),
"gzip"
);
CHECK_EQ
(
app
.
field
(
"Accept-Encoding"
),
"gzip"
);
...
...
libcaf_net/test/net/web_socket/server.cpp
View file @
33fbaf1a
...
@@ -141,7 +141,7 @@ CAF_TEST(applications receive handshake data via config) {
...
@@ -141,7 +141,7 @@ CAF_TEST(applications receive handshake data via config) {
CHECK_EQ
(
transport
.
unconsumed
(),
0u
);
CHECK_EQ
(
transport
.
unconsumed
(),
0u
);
CHECK
(
ws
->
handshake_complete
());
CHECK
(
ws
->
handshake_complete
());
CHECK_SETTING
(
"web-socket.method"
,
"GET"
);
CHECK_SETTING
(
"web-socket.method"
,
"GET"
);
CHECK_SETTING
(
"web-socket.path"
,
"chat"
);
CHECK_SETTING
(
"web-socket.path"
,
"
/
chat"
);
CHECK_SETTING
(
"web-socket.http-version"
,
"HTTP/1.1"
);
CHECK_SETTING
(
"web-socket.http-version"
,
"HTTP/1.1"
);
CHECK_SETTING
(
"web-socket.fields.Host"
,
"server.example.com"
);
CHECK_SETTING
(
"web-socket.fields.Host"
,
"server.example.com"
);
CHECK_SETTING
(
"web-socket.fields.Upgrade"
,
"websocket"
);
CHECK_SETTING
(
"web-socket.fields.Upgrade"
,
"websocket"
);
...
...
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