Skip to content

Commit

Permalink
connection.fingerprint = connection.id as a default
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Jul 22, 2016
1 parent b299b8f commit ef0b36a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initializers/connections.js
Expand Up @@ -120,7 +120,7 @@ module.exports = {

var connectionDefaults = {
error: null,
fingerprint: null,
fingerprint: self.id,
rooms: [],
params: {},
pendingActions: 0,
Expand Down
1 change: 0 additions & 1 deletion initializers/specHelper.js
Expand Up @@ -109,7 +109,6 @@ module.exports = {
var id = uuid.v4();
api.servers.servers.testServer.buildConnection({
id : id,
fingerprint : id,
rawConnection : {},
remoteAddress : 'testServer',
remotePort : 0
Expand Down
1 change: 1 addition & 0 deletions test/servers/socket.js
Expand Up @@ -125,6 +125,7 @@ describe('Server: Socket', function(){
response.data.should.be.an.instanceOf(Object);
response.data.params.should.be.an.instanceOf(Object);
response.data.connectedAt.should.be.within(10, new Date().getTime());
response.data.id.should.equal(response.data.fingerprint);
client2Details = response.data; // save for later!
done();
});
Expand Down

0 comments on commit ef0b36a

Please sign in to comment.