Skip to content

Commit

Permalink
fix(spanner): fix TestRetryInfoTransactionOutcomeUnknownError flaky b…
Browse files Browse the repository at this point in the history
…ehaviour (#7959)
  • Loading branch information
rahul2393 committed May 18, 2023
1 parent d118e63 commit f037795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spanner/retry_test.go
Expand Up @@ -63,7 +63,8 @@ func TestRetryInfoTransactionOutcomeUnknownError(t *testing.T) {
if gotDelay, ok := ExtractRetryDelay(err); ok {
t.Errorf("Got unexpected delay\nGot: %v\nWant: %v", gotDelay, 0)
}
if !testEqual(err.(*Error).err, &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}) {
want := &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}
if !testEqual(err.(*Error).err.Error(), want.Error()) {
t.Errorf("Missing expected TransactionOutcomeUnknownError wrapped error")
}
}
Expand Down

0 comments on commit f037795

Please sign in to comment.