@@ -229,7 +229,7 @@ public void asyncRunnerUpdateAbortedWithoutGettingResult() throws Exception {
229
229
public void asyncRunnerCommitFails () throws Exception {
230
230
mockSpanner .setCommitExecutionTime (
231
231
SimulatedExecutionTime .ofException (
232
- Status .RESOURCE_EXHAUSTED
232
+ Status .INVALID_ARGUMENT
233
233
.withDescription ("mutation limit exceeded" )
234
234
.asRuntimeException ()));
235
235
AsyncRunner runner = client ().runAsync ();
@@ -245,7 +245,7 @@ public void asyncRunnerCommitFails() throws Exception {
245
245
ExecutionException e = assertThrows (ExecutionException .class , () -> updateCount .get ());
246
246
assertThat (e .getCause ()).isInstanceOf (SpannerException .class );
247
247
SpannerException se = (SpannerException ) e .getCause ();
248
- assertThat (se .getErrorCode ()).isEqualTo (ErrorCode .RESOURCE_EXHAUSTED );
248
+ assertThat (se .getErrorCode ()).isEqualTo (ErrorCode .INVALID_ARGUMENT );
249
249
assertThat (se .getMessage ()).contains ("mutation limit exceeded" );
250
250
}
251
251
@@ -432,7 +432,7 @@ public void asyncRunnerBatchUpdateAbortedWithoutGettingResult() throws Exception
432
432
public void asyncRunnerWithBatchUpdateCommitFails () throws Exception {
433
433
mockSpanner .setCommitExecutionTime (
434
434
SimulatedExecutionTime .ofException (
435
- Status .RESOURCE_EXHAUSTED
435
+ Status .INVALID_ARGUMENT
436
436
.withDescription ("mutation limit exceeded" )
437
437
.asRuntimeException ()));
438
438
AsyncRunner runner = client ().runAsync ();
@@ -448,7 +448,7 @@ public void asyncRunnerWithBatchUpdateCommitFails() throws Exception {
448
448
ExecutionException e = assertThrows (ExecutionException .class , () -> updateCount .get ());
449
449
assertThat (e .getCause ()).isInstanceOf (SpannerException .class );
450
450
SpannerException se = (SpannerException ) e .getCause ();
451
- assertThat (se .getErrorCode ()).isEqualTo (ErrorCode .RESOURCE_EXHAUSTED );
451
+ assertThat (se .getErrorCode ()).isEqualTo (ErrorCode .INVALID_ARGUMENT );
452
452
assertThat (se .getMessage ()).contains ("mutation limit exceeded" );
453
453
}
454
454
0 commit comments