18 - Changing all hostname to host, fixing some async issues in tests
This commit is contained in:
@ -6,9 +6,9 @@ var settings = {
|
||||
log: new client.FileLogger('./simple-verbose.log')
|
||||
};
|
||||
var gossipSeeds = [
|
||||
new client.GossipSeed({hostname: 'localhost', port: 1113}),
|
||||
new client.GossipSeed({hostname: 'localhost', port: 2113}),
|
||||
new client.GossipSeed({hostname: 'localhost', port: 3113})
|
||||
new client.GossipSeed({host: '192.168.33.10', port: 2113}),
|
||||
new client.GossipSeed({host: '192.168.33.11', port: 2113}),
|
||||
new client.GossipSeed({host: '192.168.33.12', port: 2113})
|
||||
];
|
||||
var conn = client.createConnection(settings, gossipSeeds);
|
||||
conn.connect()
|
||||
|
@ -5,7 +5,7 @@ var uuid = require('uuid');
|
||||
var esConnection = esClient.createConnection({}, {"hostname": "localhost", "port": 1113});
|
||||
esConnection.connect();
|
||||
esConnection.once('connected', function (tcpEndPoint) {
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.hostname + ":" + tcpEndPoint.port);
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.host + ":" + tcpEndPoint.port);
|
||||
var userId = uuid.v4();
|
||||
// This event could happen as a result of (e.g.) a 'CreateUser(id, username, password)' command.
|
||||
var userCreatedEvent = {
|
||||
|
@ -9,7 +9,7 @@ const resolveLinkTos = false;
|
||||
var esConnection = esClient.createConnection({}, {"hostname": "localhost", "port": 1113});
|
||||
esConnection.connect();
|
||||
esConnection.once('connected', function (tcpEndPoint) {
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.hostname + ":" + tcpEndPoint.port);
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.host + ":" + tcpEndPoint.port);
|
||||
esConnection.subscribeToAll(resolveLinkTos, eventAppeared, subscriptionDropped, credentialsForAllEventsStream)
|
||||
.then(function(subscription) {
|
||||
console.log("subscription.isSubscribedToAll: " + subscription.isSubscribedToAll);
|
||||
|
@ -9,7 +9,7 @@ const credentialsForAllEventsStream = new esClient.UserCredentials("admin", "cha
|
||||
var esConnection = esClient.createConnection({}, {"hostname": "localhost", "port": 1113});
|
||||
esConnection.connect();
|
||||
esConnection.once('connected', function (tcpEndPoint) {
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.hostname + ":" + tcpEndPoint.port);
|
||||
console.log('Connected to eventstore at ' + tcpEndPoint.host + ":" + tcpEndPoint.port);
|
||||
var subscription = esConnection.subscribeToAllFrom(null, true, eventAppeared, liveProcessingStarted, subscriptionDropped, credentialsForAllEventsStream);
|
||||
console.log("subscription.isSubscribedToAll: " + subscription.isSubscribedToAll);
|
||||
});
|
||||
|
Reference in New Issue
Block a user