Skip to content

Commit 7c3a067

Browse files
committed
test: fix precondition test
This test matches the exact error string from the service, which has changed. Using the reason instead should be more robust. Same as googleapis/java-storage#861 Fixes googleapis#1480
1 parent 1b763e4 commit 7c3a067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system-test/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3385,7 +3385,7 @@ describe('storage', () => {
33853385
},
33863386
{
33873387
code: 412,
3388-
message: 'Precondition Failed',
3388+
reason: 'conditionNotMet',
33893389
}
33903390
);
33913391
await bucketWithVersioning

0 commit comments

Comments
 (0)