|
5797 | 5797 | }
|
5798 | 5798 | ]
|
5799 | 5799 | },
|
5800 |
| - "Writes that fail with code aborted are rejected": { |
| 5800 | + "Writes that fail with code out-of-range are rejected": { |
5801 | 5801 | "describeName": "Writes:",
|
5802 |
| - "itName": "Writes that fail with code aborted are rejected", |
| 5802 | + "itName": "Writes that fail with code out-of-range are rejected", |
5803 | 5803 | "tags": [],
|
5804 | 5804 | "config": {
|
5805 | 5805 | "useGarbageCollection": true,
|
|
5864 | 5864 | {
|
5865 | 5865 | "failWrite": {
|
5866 | 5866 | "error": {
|
5867 |
| - "code": 10 |
| 5867 | + "code": 11 |
5868 | 5868 | }
|
5869 | 5869 | },
|
5870 | 5870 | "stateExpect": {
|
|
5903 | 5903 | }
|
5904 | 5904 | ]
|
5905 | 5905 | },
|
5906 |
| - "Writes that fail with code out-of-range are rejected": { |
| 5906 | + "Writes that fail with code unimplemented are rejected": { |
5907 | 5907 | "describeName": "Writes:",
|
5908 |
| - "itName": "Writes that fail with code out-of-range are rejected", |
| 5908 | + "itName": "Writes that fail with code unimplemented are rejected", |
5909 | 5909 | "tags": [],
|
5910 | 5910 | "config": {
|
5911 | 5911 | "useGarbageCollection": true,
|
|
5970 | 5970 | {
|
5971 | 5971 | "failWrite": {
|
5972 | 5972 | "error": {
|
5973 |
| - "code": 11 |
| 5973 | + "code": 12 |
5974 | 5974 | }
|
5975 | 5975 | },
|
5976 | 5976 | "stateExpect": {
|
|
6009 | 6009 | }
|
6010 | 6010 | ]
|
6011 | 6011 | },
|
6012 |
| - "Writes that fail with code unimplemented are rejected": { |
| 6012 | + "Writes that fail with code data-loss are rejected": { |
6013 | 6013 | "describeName": "Writes:",
|
6014 |
| - "itName": "Writes that fail with code unimplemented are rejected", |
| 6014 | + "itName": "Writes that fail with code data-loss are rejected", |
6015 | 6015 | "tags": [],
|
6016 | 6016 | "config": {
|
6017 | 6017 | "useGarbageCollection": true,
|
|
6076 | 6076 | {
|
6077 | 6077 | "failWrite": {
|
6078 | 6078 | "error": {
|
6079 |
| - "code": 12 |
| 6079 | + "code": 15 |
6080 | 6080 | }
|
6081 | 6081 | },
|
6082 | 6082 | "stateExpect": {
|
|
6115 | 6115 | }
|
6116 | 6116 | ]
|
6117 | 6117 | },
|
6118 |
| - "Writes that fail with code data-loss are rejected": { |
| 6118 | + "Writes that fail with code resource_exhausted are not rejected": { |
6119 | 6119 | "describeName": "Writes:",
|
6120 |
| - "itName": "Writes that fail with code data-loss are rejected", |
| 6120 | + "itName": "Writes that fail with code resource_exhausted are not rejected", |
6121 | 6121 | "tags": [],
|
6122 | 6122 | "config": {
|
6123 | 6123 | "useGarbageCollection": true,
|
|
6182 | 6182 | {
|
6183 | 6183 | "failWrite": {
|
6184 | 6184 | "error": {
|
6185 |
| - "code": 15 |
6186 |
| - } |
6187 |
| - }, |
6188 |
| - "stateExpect": { |
6189 |
| - "userCallbacks": { |
6190 |
| - "acknowledgedDocs": [], |
6191 |
| - "rejectedDocs": [ |
6192 |
| - "collection/key" |
6193 |
| - ] |
6194 |
| - } |
6195 |
| - }, |
6196 |
| - "expect": [ |
6197 |
| - { |
6198 |
| - "query": { |
6199 |
| - "path": "collection/key", |
6200 |
| - "filters": [], |
6201 |
| - "orderBys": [] |
6202 |
| - }, |
6203 |
| - "removed": [ |
6204 |
| - { |
6205 |
| - "key": "collection/key", |
6206 |
| - "version": 0, |
6207 |
| - "value": { |
6208 |
| - "foo": "bar" |
6209 |
| - }, |
6210 |
| - "options": { |
6211 |
| - "hasLocalMutations": true, |
6212 |
| - "hasCommittedMutations": false |
6213 |
| - } |
6214 |
| - } |
6215 |
| - ], |
6216 |
| - "errorCode": 0, |
6217 |
| - "fromCache": true, |
6218 |
| - "hasPendingWrites": false |
6219 |
| - } |
6220 |
| - ] |
| 6185 | + "code": 8 |
| 6186 | + }, |
| 6187 | + "keepInQueue": true |
| 6188 | + } |
6221 | 6189 | }
|
6222 | 6190 | ]
|
6223 | 6191 | },
|
6224 |
| - "Writes that fail with code resource_exhausted are not rejected": { |
| 6192 | + "Writes that fail with code aborted are retried": { |
6225 | 6193 | "describeName": "Writes:",
|
6226 |
| - "itName": "Writes that fail with code resource_exhausted are not rejected", |
| 6194 | + "itName": "Writes that fail with code aborted are retried", |
6227 | 6195 | "tags": [],
|
6228 | 6196 | "config": {
|
6229 | 6197 | "useGarbageCollection": true,
|
|
6288 | 6256 | {
|
6289 | 6257 | "failWrite": {
|
6290 | 6258 | "error": {
|
6291 |
| - "code": 8 |
| 6259 | + "code": 10 |
6292 | 6260 | },
|
6293 | 6261 | "keepInQueue": true
|
6294 | 6262 | }
|
| 6263 | + }, |
| 6264 | + { |
| 6265 | + "writeAck": { |
| 6266 | + "version": 1000 |
| 6267 | + }, |
| 6268 | + "stateExpect": { |
| 6269 | + "userCallbacks": { |
| 6270 | + "acknowledgedDocs": [ |
| 6271 | + "collection/key" |
| 6272 | + ], |
| 6273 | + "rejectedDocs": [] |
| 6274 | + } |
| 6275 | + } |
| 6276 | + }, |
| 6277 | + { |
| 6278 | + "watchAck": [ |
| 6279 | + 2 |
| 6280 | + ] |
| 6281 | + }, |
| 6282 | + { |
| 6283 | + "watchEntity": { |
| 6284 | + "docs": [ |
| 6285 | + { |
| 6286 | + "key": "collection/key", |
| 6287 | + "version": 1000, |
| 6288 | + "value": { |
| 6289 | + "foo": "bar" |
| 6290 | + }, |
| 6291 | + "options": { |
| 6292 | + "hasLocalMutations": false, |
| 6293 | + "hasCommittedMutations": false |
| 6294 | + } |
| 6295 | + } |
| 6296 | + ], |
| 6297 | + "targets": [ |
| 6298 | + 2 |
| 6299 | + ] |
| 6300 | + } |
| 6301 | + }, |
| 6302 | + { |
| 6303 | + "watchCurrent": [ |
| 6304 | + [ |
| 6305 | + 2 |
| 6306 | + ], |
| 6307 | + "resume-token-1000" |
| 6308 | + ] |
| 6309 | + }, |
| 6310 | + { |
| 6311 | + "watchSnapshot": { |
| 6312 | + "version": 1000, |
| 6313 | + "targetIds": [] |
| 6314 | + }, |
| 6315 | + "expect": [ |
| 6316 | + { |
| 6317 | + "query": { |
| 6318 | + "path": "collection/key", |
| 6319 | + "filters": [], |
| 6320 | + "orderBys": [] |
| 6321 | + }, |
| 6322 | + "metadata": [ |
| 6323 | + { |
| 6324 | + "key": "collection/key", |
| 6325 | + "version": 1000, |
| 6326 | + "value": { |
| 6327 | + "foo": "bar" |
| 6328 | + }, |
| 6329 | + "options": { |
| 6330 | + "hasLocalMutations": false, |
| 6331 | + "hasCommittedMutations": false |
| 6332 | + } |
| 6333 | + } |
| 6334 | + ], |
| 6335 | + "errorCode": 0, |
| 6336 | + "fromCache": false, |
| 6337 | + "hasPendingWrites": false |
| 6338 | + } |
| 6339 | + ] |
6295 | 6340 | }
|
6296 | 6341 | ]
|
6297 | 6342 | },
|
|
0 commit comments