Commit a2660f28 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent 00ddd026
......@@ -21,9 +21,9 @@
#define CAF_SUITE actor_lifetime
#include "caf/test/unit_test.hpp"
#include <mutex>
#include <atomic>
#include <condition_variable>
#include <mutex>
#include "caf/all.hpp"
......@@ -62,9 +62,7 @@ public:
behavior make_behavior() override {
return {
[=](int x) {
return x;
}
[=](int x) { return x; },
};
}
};
......@@ -108,12 +106,10 @@ behavior tester(event_based_actor* self, const actor& aut) {
CAF_CHECK_EQUAL(s_testees.load(), 0);
CAF_CHECK_EQUAL(s_pending_on_exits.load(), 0);
self->quit();
}
},
};
}
struct config : actor_system_config {
config() {
set("scheduler.policy", "testing");
......@@ -163,7 +159,7 @@ struct fixture {
}
// Run the exit_msg.
sched.run_once();
//expect((exit_msg), from(tst_driver).to(tst_subject));
// expect((exit_msg), from(tst_driver).to(tst_subject));
{ // Resume driver.
std::unique_lock<std::mutex> guard{s_mtx};
s_testee_cleanup_done = true;
......
......@@ -86,8 +86,8 @@ CAF_TEST_FIXTURE_SCOPE(actor_pool_tests, fixture)
CAF_TEST(round_robin_actor_pool) {
scoped_actor self{system};
auto pool
= actor_pool::make(&context, 5, spawn_worker, actor_pool::round_robin());
auto pool = actor_pool::make(&context, 5, spawn_worker,
actor_pool::round_robin());
self->send(pool, sys_atom_v, put_atom_v, spawn_worker());
std::vector<actor> workers;
for (int i = 0; i < 6; ++i) {
......
This diff is collapsed.
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