Skip to content

Commit 53089e0

Browse files
authored
Merge pull request #470 from EYBlockchain/lyd/testrunnerFix
This PR cleans up node modules after each test finishes during the zapp-test, to avoid running out of memory.
2 parents b499757 + 95f8872 commit 53089e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apitest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const callZAppAPIs = async (zappName, apiRequests, preHook, cnstrctrInputs) => {
125125
}
126126
// Clean up and re-throw
127127
shell.exec('docker compose -f docker-compose.zapp.yml down -v');
128+
shell.exec('rm -rf node_modules', { silent: true });
128129
shell.cd('../..');
129130
throw error;
130131
}
@@ -146,6 +147,7 @@ const callZAppAPIs = async (zappName, apiRequests, preHook, cnstrctrInputs) => {
146147
shell.echo('docker stop failed');
147148
shell.exit(1);
148149
}
150+
shell.exec('rm -rf node_modules', { silent: true });
149151
shell.cd('../..');
150152
await new Promise(resolve => {
151153
setTimeout(resolve, 5000);

0 commit comments

Comments
 (0)