Skip to content

Commit

Permalink
test: speed up
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Mar 24, 2015
1 parent f575cfc commit d759456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function testClientUpdate (t, serverType) {
t.plan(4)
common.createServer(t, serverType, function (server, announceUrl) {
parsedTorrent.announce = [ announceUrl ]
var client = new Client(peerId1, port, parsedTorrent, { interval: 5000 })
var client = new Client(peerId1, port, parsedTorrent, { interval: 2000 })

client.on('error', function (err) {
t.error(err)
Expand All @@ -112,6 +112,7 @@ function testClientUpdate (t, serverType) {
client.start()

client.once('update', function () {
// after interval (2s), we should get another update
client.once('update', function (data) {
// received an update!
t.equal(data.announce, announceUrl)
Expand Down

0 comments on commit d759456

Please sign in to comment.