Skip to content

Commit

Permalink
Fixed CMake build for topic and server_restart test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki committed Feb 3, 2025
1 parent 0a8c930 commit 54f2b22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/client/topic/impl/topic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,15 @@ std::vector<ECodec> DeserializeCodecs(const Ydb::Topic::SupportedCodecs& proto)
return codecs;
}

google::protobuf::Map<TProtoStringType, TProtoStringType> SerializeAttributes(const std::map<std::string, std::string>& attributes) {
google::protobuf::Map<TProtoStringType, TProtoStringType> proto;
google::protobuf::Map<TStringType, TStringType> SerializeAttributes(const std::map<std::string, std::string>& attributes) {
google::protobuf::Map<TStringType, TStringType> proto;
for (const auto& [key, value] : attributes) {
proto.emplace(key, value);
proto[key] = value;
}
return proto;
}

std::map<std::string, std::string> DeserializeAttributes(const google::protobuf::Map<TProtoStringType, TProtoStringType>& proto) {
std::map<std::string, std::string> DeserializeAttributes(const google::protobuf::Map<TStringType, TStringType>& proto) {
std::map<std::string, std::string> attributes;
for (const auto& [key, value] : proto) {
attributes.emplace(key, value);
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
add_subdirectory(basic_example_it)
add_subdirectory(bulk_upsert_simple_it)
add_subdirectory(basic_example)
add_subdirectory(bulk_upsert)
add_subdirectory(server_restart)
4 changes: 1 addition & 3 deletions tests/integration/server_restart/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
add_ydb_test(NAME bulk_upsert_simple_it
add_ydb_test(NAME server_restart
SOURCES
main.cpp
bulk_upsert.cpp
bulk_upsert.h
LINK_LIBRARIES
yutil
api-grpc
Expand Down

0 comments on commit 54f2b22

Please sign in to comment.