Update README for tests and fix tcp port for default
This commit is contained in:
parent
29ee990a0a
commit
93e61434dd
|
@ -75,12 +75,11 @@ node app.js
|
||||||
|
|
||||||
## Running the tests
|
## 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`)
|
EventStore.ClusterNode.exe --memdb
|
||||||
- Run an instance of EventStore >= 3.3.0 (competing consumers are required for test) on localhost:1113 (Download [here](https://geteventstore.com/downloads/))
|
|
||||||
|
|
||||||
To execute the tests suites simply run test with npm
|
To execute the tests suites simply run
|
||||||
|
|
||||||
npm test
|
npm test
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ if (process.env.TESTS_VERBOSE_LOGGING === '1') {
|
||||||
settings.log = new FileLogger('test-verbose.log');
|
settings.log = new FileLogger('test-verbose.log');
|
||||||
}
|
}
|
||||||
|
|
||||||
var tcpEndPoint = {hostname: 'localhost', port: 1112};
|
var tcpEndPoint = {hostname: 'localhost', port: 1113};
|
||||||
|
|
||||||
function setUp(cb) {
|
function setUp(cb) {
|
||||||
this.log = settings.log;
|
this.log = settings.log;
|
||||||
|
|
|
@ -5,7 +5,7 @@ var testBase = require('./common/base_test');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'Connect To Endpoint Happy Path': function(test) {
|
'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);
|
var conn = client.EventStoreConnection.create(testBase.settings(), tcpEndpoint);
|
||||||
conn.connect()
|
conn.connect()
|
||||||
.catch(function(err) {
|
.catch(function(err) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user