Skip to content

Commit 02a6718

Browse files
authored
Cleanup hotswap test (#674)
* Cleanup hotswap test * unsolo
1 parent 51860e8 commit 02a6718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/replicate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ test('uses hotswaps to avoid long download tail', async t => {
16861686
p => b4a.equals(p.stream.remotePublicKey, slowKey))[0]
16871687

16881688
t.ok(fastPeer.stats.hotswaps > 0, 'hotswaps happened for fast peer')
1689-
t.ok(fastPeer.stats.hotswaps > 0, 'No hotswaps happened for slow peer')
1689+
t.ok(slowPeer.stats.hotswaps === 0, 'No hotswaps happened for slow peer')
16901690
t.ok(slowPeer.stats.wireCancel.tx > 0, 'slow peer cancelled requests')
16911691
t.ok(fastPeer.stats.wireData.rx > slowPeer.stats.wireData.rx, 'sanity check: received more data from fast peer')
16921692
t.ok(slowPeer.stats.wireData.rx > 0, 'sanity check: still received data from slow peer')

0 commit comments

Comments
 (0)