spanner: remove duplicate test method.
Quick fix for https://github.com/googleapis/google-cloud-go/issues/1738,
until Knut has a chance to review in more detail.
Change-Id: I4ed5b3107fab5f9aa75312085dfa88703547293e
Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/50690
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alex Hong <hongalex@google.com>
diff --git a/spanner/client_test.go b/spanner/client_test.go
index fd8ea0f..6cc7b4d 100644
--- a/spanner/client_test.go
+++ b/spanner/client_test.go
@@ -661,22 +661,6 @@
}
}
-func TestClient_ReadOnlyTransaction_SessionNotFoundOnExecuteStreamingSql(t *testing.T) {
- t.Parallel()
- // 'Session not found' is not retryable for a query in the middle of a
- // read-only transaction, as it would require restarting a new transaction
- // on a new session, and thereby breaking transaction atomicity.
- err := testReadOnlyTransaction(
- t,
- map[string]SimulatedExecutionTime{
- MethodExecuteStreamingSql: {Errors: []error{status.Error(codes.NotFound, "Session not found")}},
- },
- )
- if !isSessionNotFoundError(err) {
- t.Fatalf("error mismatch\nWant: %v\nGot: %v", status.Errorf(codes.NotFound, "Session not found"), err)
- }
-}
-
func testReadOnlyTransaction(t *testing.T, executionTimes map[string]SimulatedExecutionTime) error {
server, client, teardown := setupMockedTestServer(t)
defer teardown()