Skip to content

Commit 98e941f

Browse files
committed
[native] Move optional node config test in existing ConfigTest.
1 parent e17d22d commit 98e941f

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

presto-native-execution/presto_cpp/main/common/tests/ConfigTest.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,12 @@ TEST_F(ConfigTest, parseInvalid) {
246246
testInvalid("===\n", "property pair '===' has empty key");
247247
}
248248

249+
TEST_F(ConfigTest, optionalNodeId) {
250+
NodeConfig config;
251+
auto nodeId = config.nodeId();
252+
// Same value must be returned.
253+
EXPECT_EQ(nodeId, config.nodeId());
254+
EXPECT_EQ(nodeId, config.nodeId());
255+
}
256+
249257
} // namespace facebook::presto::test

presto-native-execution/presto_cpp/main/tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ add_executable(
1313
presto_server_test
1414
AnnouncerTest.cpp
1515
CoordinatorDiscovererTest.cpp
16-
ConfigsTest.cpp
1716
HttpServerWrapper.cpp
1817
MutableConfigs.cpp
1918
PeriodicMemoryCheckerTest.cpp

presto-native-execution/presto_cpp/main/tests/ConfigsTest.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)