This is an automated email from the ASF dual-hosted git repository.
junchao pushed a commit to branch fix_test
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/fix_test by this push:
new 051802c8 ft
051802c8 is described below
commit 051802c86e6702c123015767aeb8d209d3f5a1dc
Author: Ubuntu <[email protected]>
AuthorDate: Thu Jan 4 01:26:42 2024 +0000
ft
---
WORKSPACE | 15 ++++++++++++---
interface/common/resdb_txn_accessor_test.cpp | 2 +-
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/WORKSPACE b/WORKSPACE
index 7cb3260d..a2f87051 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -52,9 +52,18 @@ rules_proto_grpc_toolchains()
rules_proto_grpc_repos()
-bind(
- name = "gtest",
- actual = "@com_google_googletest//:gtest",
+#bind(
+# name = "gtest",
+# actual = "@com_google_googletest//:gtest",
+#)
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+ name = "com_google_googletest",
+ urls =
["https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip"],
+ #urls =
["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"],
+ strip_prefix = "v1.14.0",
)
bind(
diff --git a/interface/common/resdb_txn_accessor_test.cpp
b/interface/common/resdb_txn_accessor_test.cpp
index 28dfb523..9884f5a3 100644
--- a/interface/common/resdb_txn_accessor_test.cpp
+++ b/interface/common/resdb_txn_accessor_test.cpp
@@ -57,7 +57,7 @@ TEST(ResDBTxnAccessorTest, GetTransactionsFail) {
MockResDBTxnAccessor client(config);
EXPECT_CALL(client, GetNetChannel)
.Times(4)
- .WillRepeatedly(Invoke([&](const std::string& ip, int port) {
+ .WillRepeatedly(Invoke([](const std::string& ip, int port) {
auto client = std::make_unique<MockNetChannel>(ip, port);
LOG(ERROR)<<"get ip:"<<ip<<" port:"<<port;
EXPECT_CALL(*client,