test: bound reused price fixture names

This commit is contained in:
2026-09-03 21:00:11 +08:00
parent 47a043324f
commit 0ad8bb66cc
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -160,7 +160,11 @@ export async function run(context) {
return
}
sourceBytes = sourceResponse.bytes
sourceName = activeFixture.originalFileName || `price-book-${activeFixture.id}.xlsx`
// The active version may itself have been created by an earlier acceptance run.
// Reusing its original name would prepend a new marker on every run until the
// storage filename limit is exceeded. Keep the downloaded workbook content,
// but give each new isolated upload a stable, bounded fixture basename.
sourceName = 'active-price-book-fixture.xlsx'
}
const sourceHash = sha256(sourceBytes)
const uploadName = `${context.marker}-${sourceName}`