TS test: the forged-header case spells its newline as an escape
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8a833730c9
commit
a23eb8219d
1 changed files with 1 additions and 2 deletions
|
|
@ -2085,8 +2085,7 @@ test("a soft pushAll writes where nothing is, leaves a readable store alone, and
|
|||
test("a header that does not start at the store prefix is not echoed whole, though it ends like a version", async () => {
|
||||
const dir = await mkdtemp(join(tmpdir(), "cultcache-forged-header-"));
|
||||
const file = join(dir, "store.cc");
|
||||
for (const header of ["cultcache.store.SECRETcultcache.store.v9", "cultcache.store.
|
||||
cultcache.store.v9", "SECRETcultcache.store.v9"]) {
|
||||
for (const header of ["cultcache.store.SECRETcultcache.store.v9", "cultcache.store.\ncultcache.store.v9", "SECRETcultcache.store.v9"]) {
|
||||
await writeFile(file, encode([header, [], []]));
|
||||
await assert.rejects(
|
||||
() => new SingleFileMessagePackBackingStore(file).pullAll(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue