Skip to content

Commit

Permalink
Simplifies the synchronous run test utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Oct 12, 2020
1 parent be0cc33 commit 594910d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/test_main.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ private:
/// Synchronously runs a function in the main executor.
void run_x(std::function<void()> fn)
{
FnExecutable e(std::move(fn));
g_executor.add(&e);
e.n.wait_for_notification();
g_executor.sync_run(std::move(fn));
}

/** Utility class to block an executor for a while.
Expand Down

0 comments on commit 594910d

Please sign in to comment.