Skip to content

Commit 2849455

Browse files
committed
Rename test target and variable in main.cpp
1 parent 952d4f4 commit 2849455

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ int main(int argc, char *argv[]) {
1212
auto const address = argv[1];
1313
auto const port = static_cast<unsigned short>(std::atoi(argv[2]));
1414
auto const threads = std::max<int>(1, std::atoi(argv[3]));
15-
server a{threads};
16-
a.run(address, port);
15+
server server{threads};
16+
server.run(address, port);
1717
char wait;
1818
std::cin >> wait;
1919
return EXIT_SUCCESS;

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
add_executable(container_test)
2-
target_sources(container_test PRIVATE readings.cpp)
1+
add_executable(endpoint_test)
2+
target_sources(endpoint_test PRIVATE readings.cpp)
33
find_package(GTest REQUIRED)
44
find_package(nlohmann_json REQUIRED)
5-
target_link_libraries(container_test PRIVATE GTest::gmock_main nlohmann_json::nlohmann_json rest)
5+
target_link_libraries(endpoint_test PRIVATE GTest::gmock_main nlohmann_json::nlohmann_json rest)
66

7-
add_test(container_test container_test)
7+
add_test(endpoint_test endpoint_test)

0 commit comments

Comments
 (0)