diff --git a/TODO.md b/TODO.md index 38e26b4..016437c 100644 --- a/TODO.md +++ b/TODO.md @@ -3,11 +3,6 @@ ## Questions -- Do we want to have a default value for some parameters on POST /rooms? -- What the default configuration should be, with hints from us. -- What should be the size of the room token? 8 Bytes for now. -- Should we dedupe the users in the room? (a participant per device or per account) -- Should everyone be able to list all the participants to a room, or should that be only for participants? - How do we handle the link clicker session? - How do we handle two participants asking for the same displayName? diff --git a/loadtests/config/test.ini b/loadtests/config/test.ini index 53b1e72..2beeeaf 100644 --- a/loadtests/config/test.ini +++ b/loadtests/config/test.ini @@ -2,4 +2,4 @@ hits = 1 users = 1 no-dns-resolve = true -include_file = ./loadtest/*.py +include_file = loadtest/*.py diff --git a/loop/tokbox.js b/loop/tokbox.js index dbb8e9e..85ad46d 100644 --- a/loop/tokbox.js +++ b/loop/tokbox.js @@ -172,10 +172,17 @@ FakeTokBox.prototype = { getSession: function(options, cb) { if (cb === undefined) { cb = options; - options = undefined; + options = {}; } - cb(null, this._fakeSessionId(), {apiKey: this._fakeApiKey()}); + var self = this; + // Do a real HTTP call to have a realistic behavior. + request.get({ + url: self.serverURL, + timeout: options.timeout + }, function(err) { + cb(err, self._fakeSessionId(), {apiKey: self._fakeApiKey()}); + }); }, getSessionToken: function() {