Update README for tests and fix tcp port for default

This commit is contained in:
Nicolas Dextraze 2016-10-30 09:44:29 -07:00
parent 29ee990a0a
commit 93e61434dd
3 changed files with 5 additions and 6 deletions

View File

@ -75,12 +75,11 @@ node app.js
## Running the tests
To run the tests you will need
To run the tests it is recommended that you use an in-memory instance of the eventstore so you don't pollute your dev instance.
- To install the dependencies (`npm install`)
- Run an instance of EventStore >= 3.3.0 (competing consumers are required for test) on localhost:1113 (Download [here](https://geteventstore.com/downloads/))
EventStore.ClusterNode.exe --memdb
To execute the tests suites simply run test with npm
To execute the tests suites simply run
npm test

View File

@ -12,7 +12,7 @@ if (process.env.TESTS_VERBOSE_LOGGING === '1') {
settings.log = new FileLogger('test-verbose.log');
}
var tcpEndPoint = {hostname: 'localhost', port: 1112};
var tcpEndPoint = {hostname: 'localhost', port: 1113};
function setUp(cb) {
this.log = settings.log;

View File

@ -5,7 +5,7 @@ var testBase = require('./common/base_test');
module.exports = {
'Connect To Endpoint Happy Path': function(test) {
var tcpEndpoint = {hostname: 'localhost', port: 1112};
var tcpEndpoint = {hostname: 'localhost', port: 1113};
var conn = client.EventStoreConnection.create(testBase.settings(), tcpEndpoint);
conn.connect()
.catch(function(err) {