From 93e61434dd6c267674f83deea18b9fd43f2b0267 Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Sun, 30 Oct 2016 09:44:29 -0700 Subject: [PATCH] Update README for tests and fix tcp port for default --- README.md | 7 +++---- test/common/base_test.js | 2 +- test/connection_test.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index be9e115..861c7da 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/test/common/base_test.js b/test/common/base_test.js index 8234c2d..3a12e5b 100644 --- a/test/common/base_test.js +++ b/test/common/base_test.js @@ -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; diff --git a/test/connection_test.js b/test/connection_test.js index 6673f65..8414db9 100644 --- a/test/connection_test.js +++ b/test/connection_test.js @@ -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) {