Skip to content

Commit 90861db

Browse files
committed
fix options
1 parent 580f5e7 commit 90861db

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

google/cloud/bigtable/tests/data_integration_test.cc

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "google/cloud/bigtable/client.h"
1616
#include "google/cloud/bigtable/internal/defaults.h"
17+
#include "google/cloud/bigtable/retry_policy.h"
1718
#include "google/cloud/bigtable/testing/table_integration_test.h"
1819
#include "google/cloud/log.h"
1920
#include "google/cloud/testing_util/chrono_literals.h"
@@ -694,15 +695,19 @@ TEST_P(DataIntegrationTest, ClientQueryTest) {
694695
};
695696
BulkApply(table, created);
696697
auto data_connection = table.connection();
697-
auto client =
698-
Client(data_connection,
699-
Options{}
700-
.set<DataRetryPolicyOption>(
701-
DataLimitedErrorCountRetryPolicy(0).clone())
702-
.set<DataBackoffPolicyOption>(
703-
google::cloud::internal::ExponentialBackoffPolicy(
704-
ms(0), ms(0), 2.0)
705-
.clone()));
698+
auto client = Client(
699+
data_connection,
700+
Options{}
701+
.set<DataRetryPolicyOption>(
702+
DataLimitedErrorCountRetryPolicy(0).clone())
703+
.set<DataBackoffPolicyOption>(
704+
google::cloud::internal::ExponentialBackoffPolicy(ms(0), ms(0),
705+
2.0)
706+
.clone())
707+
.set<bigtable::experimental::QueryPlanRefreshRetryPolicyOption>(
708+
bigtable::experimental::
709+
QueryPlanRefreshLimitedErrorCountRetryPolicy(0)
710+
.clone()));
706711
std::vector<std::string> full_table_path =
707712
absl::StrSplit(table.table_name(), '/');
708713
auto table_name = full_table_path.back();

0 commit comments

Comments
 (0)