Skip to content

Commit f037795

Browse files
authored
fix(spanner): fix TestRetryInfoTransactionOutcomeUnknownError flaky behaviour (#7959)
1 parent d118e63 commit f037795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spanner/retry_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ func TestRetryInfoTransactionOutcomeUnknownError(t *testing.T) {
6363
if gotDelay, ok := ExtractRetryDelay(err); ok {
6464
t.Errorf("Got unexpected delay\nGot: %v\nWant: %v", gotDelay, 0)
6565
}
66-
if !testEqual(err.(*Error).err, &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}) {
66+
want := &TransactionOutcomeUnknownError{status.FromContextError(context.DeadlineExceeded).Err()}
67+
if !testEqual(err.(*Error).err.Error(), want.Error()) {
6768
t.Errorf("Missing expected TransactionOutcomeUnknownError wrapped error")
6869
}
6970
}

0 commit comments

Comments
 (0)