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
e781635d
Commit
e781635d
authored
Jun 20, 2018
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test that used a fixed port
parent
1b62271d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libcaf_io/test/remote_actor_udp.cpp
libcaf_io/test/remote_actor_udp.cpp
+5
-3
No files found.
libcaf_io/test/remote_actor_udp.cpp
View file @
e781635d
...
...
@@ -201,7 +201,9 @@ CAF_TEST(multiple_endpoints_udp) {
}
};
});
server_sys
.
middleman
().
publish_udp
(
mirror
,
12345
);
auto
res
=
server_sys
.
middleman
().
publish_udp
(
mirror
,
0
);
CAF_REQUIRE
(
res
);
auto
port
=
*
res
;
auto
client_fun
=
[](
event_based_actor
*
self
)
->
behavior
{
return
{
[
=
](
actor
s
)
{
...
...
@@ -220,7 +222,7 @@ CAF_TEST(multiple_endpoints_udp) {
actor_system
client_sys
{
client_cfg
};
auto
client
=
client_sys
.
spawn
(
client_fun
);
// acquire remote actor from the server
auto
client_srv
=
client_sys
.
middleman
().
remote_actor_udp
(
"localhost"
,
12345
);
auto
client_srv
=
client_sys
.
middleman
().
remote_actor_udp
(
"localhost"
,
port
);
CAF_REQUIRE
(
client_srv
);
// setup other clients
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
...
...
@@ -229,7 +231,7 @@ CAF_TEST(multiple_endpoints_udp) {
CAF_MESSAGE
(
"creating new client"
);
auto
other
=
other_sys
.
spawn
(
client_fun
);
// acquire remote actor from the server
auto
other_srv
=
other_sys
.
middleman
().
remote_actor_udp
(
"localhost"
,
12345
);
auto
other_srv
=
other_sys
.
middleman
().
remote_actor_udp
(
"localhost"
,
port
);
CAF_REQUIRE
(
other_srv
);
// establish communication and exit
CAF_MESSAGE
(
"client contacts server and exits"
);
...
...
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