Commit a2660f28 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

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