Skip to content

Commit

Permalink
🐛 Fix not to connect to self
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Apr 13, 2019
1 parent 1ae6232 commit a72638e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/src/modules/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ module.exports = class Network {
this.logger.error(
`Could not respond to peer request ${
request.procedure
} because of error: ${error.message || error.message}`
} because of error: ${error.message || error}`
);
request.error(error); // Send an error back to the peer.
}
Expand Down
2 changes: 1 addition & 1 deletion framework/test/mocha/common/generatePeerHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const generatePeerHeader = function(headers = {}) {
};

return {
blacklistedPeers: [],
blacklistedPeers: [{ ipAddress: '127.0.0.1', wsPort: nodeInfo.wsPort }],
seedPeers: testConfig.modules.network.list.map(v => ({
ipAddress: v.ip,
wsPort: v.wsPort,
Expand Down
2 changes: 1 addition & 1 deletion framework/test/mocha/functional/ws/transport/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

require('../../functional');
// require('../../functional');
const { P2P } = require('@liskhq/lisk-p2p');
const { generatePeerHeader } = require('../../../common/generatePeerHeader');
const waitFor = require('../../../common/utils/wait_for');
Expand Down

0 comments on commit a72638e

Please sign in to comment.