Skip to content

Commit d759456

Browse files
committed
test: speed up
1 parent f575cfc commit d759456

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function testClientUpdate (t, serverType) {
9999
t.plan(4)
100100
common.createServer(t, serverType, function (server, announceUrl) {
101101
parsedTorrent.announce = [ announceUrl ]
102-
var client = new Client(peerId1, port, parsedTorrent, { interval: 5000 })
102+
var client = new Client(peerId1, port, parsedTorrent, { interval: 2000 })
103103

104104
client.on('error', function (err) {
105105
t.error(err)
@@ -112,6 +112,7 @@ function testClientUpdate (t, serverType) {
112112
client.start()
113113

114114
client.once('update', function () {
115+
// after interval (2s), we should get another update
115116
client.once('update', function (data) {
116117
// received an update!
117118
t.equal(data.announce, announceUrl)

0 commit comments

Comments
 (0)