Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbbjarnason committed Oct 10, 2023
1 parent e2cef61 commit d0103a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion libs/confman/src/detail/config_dbus_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace tfc::confman::detail {
// busctl --system introspect com.skaginn3x.config.operation_mode.def.state_machine /com/skaginn3x/etc/tfc/config
// clang-format on


config_dbus_client::config_dbus_client(boost::asio::io_context&) {}

config_dbus_client::config_dbus_client(dbus_connection_t conn,
Expand Down
23 changes: 11 additions & 12 deletions libs/confman/testing/tests/confman_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,17 @@ auto main(int argc, char** argv) -> int {
});

uint32_t called{};
sdbusplus::asio::setProperty<config_property>(dbus, interface_name, interface_path.string(), interface_name,
std::string{ property_name },
config_property{ R"({"a":11,"b":12,"c":"a"})", "" },
[&called, &conf]([[maybe_unused]] std::error_code err) {
if (err) {
fmt::print(stderr, "Set property error: '{}'", err.message());
}
called++;
ut::expect(conf->a == 11);
ut::expect(conf->b == 12);
ut::expect(conf->c == "a");
});
sdbusplus::asio::setProperty<config_property>(
dbus, interface_name, interface_path.string(), interface_name, std::string{ property_name },
config_property{ R"({"a":11,"b":12,"c":"a"})", "" }, [&called, &conf]([[maybe_unused]] std::error_code err) {
if (err) {
fmt::print(stderr, "Set property error: '{}'", err.message());
}
called++;
ut::expect(conf->a == 11);
ut::expect(conf->b == 12);
ut::expect(conf->c == "a");
});

ctx.run_for(std::chrono::milliseconds(10));
ut::expect(called == 1);
Expand Down

0 comments on commit d0103a0

Please sign in to comment.