We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d118e63 commit f037795Copy full SHA for f037795
spanner/retry_test.go
@@ -63,7 +63,8 @@ func TestRetryInfoTransactionOutcomeUnknownError(t *testing.T) {
63
if gotDelay, ok := ExtractRetryDelay(err); ok {
64
t.Errorf("Got unexpected delay\nGot: %v\nWant: %v", gotDelay, 0)
65
}
66
- if !testEqual(err.(*Error).err, &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}) {
+ want := &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}
67
+ if !testEqual(err.(*Error).err.Error(), want.Error()) {
68
t.Errorf("Missing expected TransactionOutcomeUnknownError wrapped error")
69
70
0 commit comments