Skip to content

Commit f11a61c

Browse files
authored
Unflake announce-range-on-update test (#742)
1 parent edf052a commit f11a61c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/remote-length.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,15 @@ test('announce-range-on-update flow with big core (multiple bitfield pages)', as
8888
)
8989

9090
// Some sanity checks on the actual public api
91-
92-
const getOpts = {
93-
timeout: 500,
94-
valueEncoding: 'utf-8'
95-
}
96-
9791
// Note: This check is expected to fail if BITS_PER_PAGE changes; just update it then
9892
t.is(
99-
await c.get(nrBlocks - 1, getOpts),
93+
await c.get(nrBlocks - 1, { valueEncoding: 'utf-8' }),
10094
'block-32777',
10195
'Peer c can get the block peer b also has'
10296
)
10397

10498
await t.exception(
105-
async () => await c.get(nrBlocks - 2, getOpts),
99+
async () => await c.get(nrBlocks - 2, { timeout: 500, valueEncoding: 'utf-8' }),
106100
/REQUEST_TIMEOUT/,
107101
'Sanity check: peer c can not get blocks peer b does not have'
108102
)

0 commit comments

Comments
 (0)