also looking at this
fix: hydrate durable registry snapshots before serving writes
#244
11 files
+202
-35
| @@ -1,3 +1,4 @@ | ||
| 1 | import { S3RequestError } from './storage/aws-client' | |
| 1 | 2 | import { describe, expect, test } from 'bun:test' |
| 2 | 3 | import { ObjectPhpStorage } from './php' |
| 3 | 4 | import { ObjectZigStorage } from './zig' |
| @@ -14,7 +15,7 @@ class MockS3 { | ||
| 14 | 15 | async getObjectBuffer(bucket: string, key: string): Promise<Buffer> { |
| 15 | 16 | const v = this.store.get(`${bucket}/${key}`) |
| 16 | 17 | if (!v) |
| 17 | throw new Error('404 Not Found') | |
| 18 | throw new S3RequestError('GET', 404, 'NoSuchKey') | |
| 18 | 19 | return v |
| 19 | 20 | } |
| 20 | 21 | |