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
104e2f27
Commit
104e2f27
authored
Jul 20, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unsafe check from unit test
parent
9909c679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
libcaf_io/test/triggering.cpp
libcaf_io/test/triggering.cpp
+3
-6
No files found.
libcaf_io/test/triggering.cpp
View file @
104e2f27
...
...
@@ -19,7 +19,7 @@
#include "caf/config.hpp"
#define CAF_SUITE io_
resum
ing
#define CAF_SUITE io_
trigger
ing
#include "caf/test/unit_test.hpp"
#include <memory>
...
...
@@ -75,6 +75,7 @@ behavior server1_stage4(stateful_actor<server1_state, broker>* self) {
CAF_REQUIRE_EQUAL
(
self
->
state
.
received
,
15u
);
CAF_REQUIRE_NOT_EQUAL
(
self
->
state
.
peer
,
invalid_connection_handle
);
// delay new tokens to force MM to remove this broker from its loop
CAF_MESSAGE
(
"server is done"
);
self
->
quit
();
}
};
...
...
@@ -149,7 +150,7 @@ behavior server2_stage4(stateful_actor<server2_state, broker>* self) {
},
[
=
](
const
acceptor_passivated_msg
&
)
{
CAF_REQUIRE_EQUAL
(
self
->
state
.
accepted
,
16u
);
// delay new tokens to force MM to remove this broker from its loop
CAF_MESSAGE
(
"server is done"
);
self
->
quit
();
}
};
...
...
@@ -257,10 +258,6 @@ CAF_TEST(trigger_acceptor) {
"localhost"
,
port
);
CAF_REQUIRE
(
cl
);
}
// but no longer after that point
auto
cl
=
client_system
.
middleman
().
spawn_client
(
client
,
"localhost"
,
port
);
CAF_REQUIRE
(
!
cl
);
}};
child
.
join
();
}
...
...
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