mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
test: expose historic sql pattern shard path
This commit is contained in:
parent
a223f53809
commit
dab7bfb5c3
1 changed files with 2 additions and 1 deletions
|
|
@ -132,10 +132,11 @@ if (expectedWorkUnits === 'zero') {
|
|||
} else if (expectedWorkUnits === 'nonzero') {
|
||||
assert(record.workUnitCount > 0, `${label}: expected nonzero WorkUnits`);
|
||||
const patternUnits = record.workUnits.filter((unit) => /^historic-sql-patterns-part-\d{4}$/.test(unit.unitKey));
|
||||
const patternShardRawFilePattern = new RegExp('^patterns-input/part-\\d{4}\\.json$');
|
||||
assert(patternUnits.length > 0, `${label}: expected sharded patterns WorkUnit`);
|
||||
for (const unit of patternUnits) {
|
||||
assert(
|
||||
unit.rawFiles.some((rawFile) => /^patterns-input\/part-\d{4}\.json$/.test(rawFile)),
|
||||
unit.rawFiles.some((rawFile) => patternShardRawFilePattern.test(rawFile)),
|
||||
`${label}: expected ${unit.unitKey} to read a pattern shard`,
|
||||
);
|
||||
assert(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue