File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments