Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lonerapier committed Sep 11, 2024
1 parent b60cf7d commit ee7b757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions circuits/test/http/codegen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { spawn } from "child_process";
import { readFileSync } from "fs";

function readLockFile<T>(filename: string): T {
const filePath = join(__dirname, "..", "..", "..", "examples", "lockfile", filename);
const filePath = join(__dirname, "..", "..", "..", "examples", "http", "lockfile", filename);
const jsonString = readFileSync(filePath, 'utf-8');
const jsonData = JSON.parse(jsonString);
return jsonData;
Expand Down Expand Up @@ -43,7 +43,7 @@ interface Response {

function executeCodegen(inputFilename: string, outputFilename: string) {
return new Promise((resolve, reject) => {
const inputPath = join(__dirname, "..", "..", "..", "examples", "lockfile", inputFilename);
const inputPath = join(__dirname, "..", "..", "..", "examples", "http", "lockfile", inputFilename);

const codegen = spawn("cargo", ["run", "http", "--lockfile", inputPath, "--output-filename", outputFilename]);

Expand Down
2 changes: 1 addition & 1 deletion circuits/test/json/extractor/extractor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { spawn } from "child_process";

function executeCodegen(inputFilename: string, outputFilename: string) {
return new Promise((resolve, reject) => {
const inputPath = join(__dirname, "..", "..", "..", "..", "examples", "extractor", inputFilename);
const inputPath = join(__dirname, "..", "..", "..", "..", "examples", "json", "lockfile", inputFilename);

const codegen = spawn("cargo", ["run", "json", "--template", inputPath, "--output-filename", outputFilename]);

Expand Down

0 comments on commit ee7b757

Please sign in to comment.