Skip to content

Commit

Permalink
revert: reverts a previous commit (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu authored Jan 24, 2023
1 parent a7c8daa commit c3b3bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parse_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,14 +897,14 @@ it('should fail on invalid examples', async function() {
});

describe('memory usage', function () {
it('should use this same instance of validation function in each call (use less than 150mb of memory)', async function() {
it('should use this same instance of validation function in each call', async function() {
this.timeout(12500);
const asyncapi = fs.readFileSync(path.resolve(__dirname, './good/zbos_mqtt-all-asyncapi.json'), 'utf8');

for (let i = 0, l = 25; i < l; i++) {
await parser.parse(asyncapi);
const used = process.memoryUsage().heapUsed / 1024 / 1024;
expect(used < 150).to.equal(true); // less than 150 MB
expect(used < 100).to.equal(true); // less than 100 MB
}
});
});
Expand Down

0 comments on commit c3b3bc6

Please sign in to comment.