Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventEmitter Memory leak fixed. #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions inbox/test/Inbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const assert = require('assert');
const ganache = require('ganache-cli');
const Web3 = require('web3');
const web3 = new Web3(ganache.provider());
///MaxListenerExceededWarning fixed!
require('events').EventEmitter.defaultMaxListeners = 15;


const { interface, bytecode } = require('../compile');

let accounts;
Expand Down
5 changes: 5 additions & 0 deletions kickstart/test/Campaign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const assert = require('assert');
const ganache = require('ganache-cli');
const Web3 = require('web3');
const web3 = new Web3(ganache.provider());
///MaxListenerExceededWarning fix.
require('events').EventEmitter.defaultMaxListeners = 27;

///MaxListenerExceededWarning fixed!
require('events').EventEmitter.defaultMaxListeners = 27;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this defaultMaxListeners changed twice in this file?


const compiledFactory = require('../ethereum/build/CampaignFactory.json');
const compiledCampaign = require('../ethereum/build/Campaign.json');
Expand Down
3 changes: 3 additions & 0 deletions lottery/test/Lottery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const assert = require('assert');
const ganache = require('ganache-cli');
const Web3 = require('web3');
const web3 = new Web3(ganache.provider());
///MaxListenerExceededWarning fixed!
require('events').EventEmitter.defaultMaxListeners = 21;


const { interface, bytecode } = require('../compile');

Expand Down