Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(weights): the committed e2e weights match their metadata (names the file for its pregate lane)

garrytan899aef90a243
diff --git a/test/scripts/mine-shard-weights.test.ts b/test/scripts/mine-shard-weights.test.ts
index b81d3365e2..f9df119190 100644
--- a/test/scripts/mine-shard-weights.test.ts
+++ b/test/scripts/mine-shard-weights.test.ts
@@ -590,6 +590,7 @@ describe('committed shard weights', () => {
it.each([
['scripts/test-weights.json', 'scripts/test-weights.metadata.json', 'unit', 'milliseconds'],
['scripts/serial-weights.json', 'scripts/serial-weights.metadata.json', 'serial', 'seconds'],
+ ['scripts/e2e-weights.json', 'scripts/e2e-weights.metadata.json', 'e2e', 'milliseconds'],
])('%s matches the metadata the miner wrote beside it', (weightsPath, metadataPath, lane, unit) => {
const root = join(import.meta.dir, '..', '..');
const weights = JSON.parse(readFileSync(join(root, weightsPath), 'utf8')) as Record<string, number>;