Skip to content

Commit

Permalink
Catch both SpannerException and ExecutionException.
Browse files Browse the repository at this point in the history
Co-authored-by: Knut Olav Løite <[email protected]>
  • Loading branch information
rajatbhatta and olavloite authored Mar 5, 2022
1 parent 174a182 commit e017ad9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public void test02_RetryNonIdempotentRpcsReturningLongRunningOperations() throws
}
try {
client.cancelOperation(op.getName());
} catch (ExecutionException e) {
} catch (SpannerException | ExecutionException e) {
// Ignore, this can happen, as the restore operation sometimes fails to start if there
// is already a restore operation running on the instance.
}
Expand Down

0 comments on commit e017ad9

Please sign in to comment.