Skip to content

Commit

Permalink
Move file load from findSchema
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
  • Loading branch information
konstantinabl committed Jul 22, 2024
1 parent dd4865a commit bc804b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/tests/acceptance/conformityTests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,14 @@ describe('@api-conformity Ethereum execution apis tests', function () {

//Filtering in order to use only the tests for methods we support in our relay
directories = directories.filter((directory) => relaySupportedMethodNames.includes(directory));
execApisOpenRpcData = require('../../../../openrpc_exec_apis.json');
for (const directory of directories) {
const filePath = path.join(directoryPath, directory);

if (fs.statSync(filePath).isDirectory()) {
const files = fs.readdirSync(path.resolve(directoryPath, directory));
for (const file of files) {
it(`Executing for ${directory}`, async () => {
execApisOpenRpcData = require('../../../../openrpc_exec_apis.json');
const data = fs.readFileSync(path.resolve(directoryPath, directory, file));
const content = splitReqAndRes(data.toString('utf-8'));
const missingKeys = await processFileContent(directory, file, content);
Expand Down

0 comments on commit bc804b1

Please sign in to comment.