func TestQueryWithEmptyResult_CommitAborted(t *testing.T) {
	testRetryReadWriteTransactionWithQueryWithRetrySuccess(t, func(server testutil.InMemSpannerServer) {
		// Let the query return an empty result set with only one column.
		server.PutStatementResult(testutil.SelectFooFromBar, &testutil.StatementResult{
			Type:      testutil.StatementResultResultSet,
			ResultSet: testutil.CreateSingleColumnResultSet([]int64{}, "FOO"),
		})
		server.PutExecutionTime(testutil.MethodCommitTransaction, testutil.SimulatedExecutionTime{
			Errors: []error{status.Error(codes.Aborted, "Aborted")},
		})
	}, codes.OK, -1, 2, 2)
}
// TestQueryWithEmptyResult_CommitAborted tests the scenario where a query returns
// the same empty result set during the initial attempt and a retry.
TestQueryWithEmptyResult_CommitAborted tests the scenario where a query returns
the same empty result set during the initial attempt and a retry.
// TestQueryWithEmptyResult_CommitAborted tests the scenario where a query returns // the same empty result set during the initial attempt and a retry .
func TestQueryWithEmptyResult_CommitAborted(t *testing.T) {
	testRetryReadWriteTransactionWithQueryWithRetrySuccess(t, func(server testutil.InMemSpannerServer) {
		server.PutStatementResult(testutil.SelectFooFromBar, &testutil.StatementResult{
			Type:      testutil.StatementResultResultSet,
			ResultSet: testutil.CreateSingleColumnResultSet([]int64{}, "FOO"),
		})
		server.PutExecutionTime(testutil.MethodCommitTransaction, testutil.SimulatedExecutionTime{
			Errors: []error{status.Error(codes.Aborted, "Aborted")},
		})
	}, codes.OK, -1, 2, 2)
}
func TestQueryWithEmptyResult_CommitAborted ( t * testing . T ) { testRetryReadWriteTransactionWithQueryWithRetrySuccess ( t , func ( server testutil . InMemSpannerServer ) { server . PutStatementResult ( testutil . SelectFooFromBar , & testutil . StatementResult { Type : testutil . StatementResultResultSet , ResultSet : testutil . CreateSingleColumnResultSet ( [ ] int64 { } , " " ) , } ) server . PutExecutionTime ( testutil . MethodCommitTransaction , testutil . SimulatedExecutionTime { Errors : [ ] error { status . Error ( codes . Aborted , " " ) } , } ) } , codes . OK , - 1 , 2 , 2 ) }
TestQueryWithEmptyResult_CommitAborted tests the scenario where a query returns
the same empty result set during the initial attempt and a retry.
TestQueryWithEmptyResult_CommitAborted tests the scenario where a query returns the same empty result set during the initial attempt and a retry .
// Let the query return an empty result set with only one column.