Commit 7ab1528f authored by Joseph Noir's avatar Joseph Noir

Fix warnings in release with more warnings flag

parent 19bb3b87
......@@ -105,11 +105,12 @@ behavior broker_impl(broker* self, connection_handle hdl, const actor& buddy) {
// brokers can multiplex any number of connections, however
// this example assumes io_fsm to manage a broker with
// exactly one connection
assert(msg.handle == hdl);
aout(self) << "connection closed" << endl;
// force buddy to quit
self->send_exit(buddy, exit_reason::remote_link_unreachable);
self->quit(exit_reason::remote_link_unreachable);
if (msg.handle == hdl) {
aout(self) << "connection closed" << endl;
// force buddy to quit
self->send_exit(buddy, exit_reason::remote_link_unreachable);
self->quit(exit_reason::remote_link_unreachable);
}
},
[=](atom_value av, int32_t i) {
assert(av == atom("ping") || av == atom("pong"));
......
......@@ -61,14 +61,14 @@ void tester(event_based_actor* self, const calculator_type& testee) {
// first test: 2 + 1 = 3
self->sync_send(testee, plus_request{2, 1}).then(
[=](int r1) {
assert(r1 == 3);
// second test: 2 - 1 = 1
self->sync_send(testee, minus_request{2, 1}).then(
[=](int r2) {
assert(r2 == 1);
// both tests succeeded
aout(self) << "AUT (actor under test) seems to be ok"
<< endl;
if (r1 == 3 && r2 == 1) {
aout(self) << "AUT (actor under test) seems to be ok"
<< endl;
}
self->send(testee, shutdown_request{});
}
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment