Skip to content

Commit f11d3ec

Browse files
committed
update
1 parent 6ccf9c7 commit f11d3ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/iceberg/test/config_test.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,16 @@ class TestConfig : public ConfigBase<TestConfig> {
6565
EnumToString, StringToEnum};
6666
inline static const Entry<double> kDoubleConfig{"double_config", 3.14};
6767

68+
static std::unique_ptr<TestConfig> default_properties() {
69+
return std::unique_ptr<TestConfig>(new TestConfig());
70+
}
71+
6872
private:
6973
TestConfig() = default;
7074
};
7175

7276
TEST(ConfigTest, BasicOperations) {
73-
auto config = std::unique_ptr<TestConfig>(new TestConfig());
77+
auto config = TestConfig::default_properties();
7478

7579
// Test default values
7680
ASSERT_EQ(config->Get(TestConfig::kStringConfig), std::string("default_value"));

0 commit comments

Comments
 (0)