Skip to content

Commit 2e73af4

Browse files
authored
transaction_test.cc: Capture DocumentReference by value in TestMaxAttempts. (#1025)
1 parent 584564f commit 2e73af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firestore/integration_test_internal/src/transaction_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@ TEST_F(TransactionTest, TestMaxAttempts) {
744744

745745
Future<void> run_transaction_future = firestore->RunTransaction(
746746
options,
747-
[update_count, &doc](Transaction& transaction,
748-
std::string& error_message) -> Error {
747+
[update_count, doc](Transaction& transaction,
748+
std::string& error_message) mutable -> Error {
749749
SCOPED_TRACE("Update callback; update_count=" +
750750
std::to_string(update_count->load()));
751751
++(*update_count);

0 commit comments

Comments
 (0)