Skip to content

Commit

Permalink
config: test that the bindings are updated after a property.reset() call
Browse files Browse the repository at this point in the history
(cherry picked from commit 63eb446)
  • Loading branch information
ztlpn authored and mmaslankaprv committed Feb 19, 2024
1 parent 7ac29ae commit b4a4314
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/v/config/tests/config_store_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ SEASTAR_THREAD_TEST_CASE(property_bind) {
BOOST_TEST(bind2() == "newvalue4");
BOOST_TEST(bind3() == "newvalue4");
BOOST_TEST(watch_count == 6);

// Check that the bindings are updated when the property is reset to its
// default value.
cfg2.required_string.reset();
BOOST_TEST(bind2() == "");
BOOST_TEST(bind3() == "");
BOOST_TEST(watch_count == 8);
}

SEASTAR_THREAD_TEST_CASE(property_conversion_bind) {
Expand Down

0 comments on commit b4a4314

Please sign in to comment.