Skip to content

Commit bd4ad7e

Browse files
Fix e2e circuit recorder test
1 parent b096736 commit bd4ad7e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

yarn-project/end-to-end/src/e2e_circuit_recorder.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ describe('Circuit Recorder', () => {
5050
// init_K artifact whose K is within [1, MAX_APPS_PER_KERNEL]: that's the artifact name the
5151
// recorder will produce on disk.
5252
{
53+
// Match the recorder's `circuitName_functionName` filename: the recorder uses
54+
// `artifact.name`, which BundleArtifactProvider derives by stripping 'Artifact' from the
55+
// ClientProtocolArtifact key (e.g. 'PrivateKernelInit3Artifact' → 'PrivateKernelInit3'),
56+
// so there is no underscore between 'Init' and the digit.
5357
const initVariants = Array.from({ length: MAX_APPS_PER_KERNEL }, (_, i) =>
54-
i === 0 ? 'PrivateKernelInit' : `PrivateKernelInit_${i + 1}`,
58+
i === 0 ? 'PrivateKernelInit' : `PrivateKernelInit${i + 1}`,
5559
);
5660

5761
const files = await fs.readdir(RECORD_DIR);

0 commit comments

Comments
 (0)