(promise)
| 50 | } |
| 51 | |
| 52 | async function ignoreNoSuchEntity(promise) { |
| 53 | try { |
| 54 | return await promise; |
| 55 | } catch (err) { |
| 56 | if (err instanceof NoSuchEntityException) { |
| 57 | return null; |
| 58 | } |
| 59 | throw err; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // the cleanup runs whatever state the test left behind, so every |
| 64 | // deletion has to tolerate resources that were never created |