()
| 273 | } |
| 274 | |
| 275 | async dispose(): Promise<void> { |
| 276 | if (this.contextDbCached) { |
| 277 | try { |
| 278 | this.contextDbCached.close(); |
| 279 | } catch { |
| 280 | // ignore close errors |
| 281 | } |
| 282 | this.contextDbCached = null; |
| 283 | } |
| 284 | await this.rpc.shutdown(); |
| 285 | await this.mock.stop(); |
| 286 | } |
| 287 | } |