Skip to content

Commit fff493b

Browse files
committed
Sanity check it triggers without logs
1 parent 74deb4a commit fff493b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/replicate.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ for (let i = 0; i < 500; i++) {
12261226
const b = await create(a.key)
12271227

12281228
await a.append(['a', 'b', 'c'])
1229-
console.log('appended blocks')
1229+
// console.log('appended blocks')
12301230

12311231
const [n1, n2] = makeStreamPair(t, { latency: [50, 50] })
12321232
a.replicate(n1)
@@ -1237,7 +1237,7 @@ for (let i = 0; i < 500; i++) {
12371237

12381238
const cancelling = waitForRequestBlock(s1).then(() => {
12391239
const res = s1.close()
1240-
console.log('called close on s1')
1240+
// console.log('called close on s1')
12411241
return res
12421242
})
12431243

@@ -1249,25 +1249,25 @@ for (let i = 0; i < 500; i++) {
12491249
await b1
12501250
// t.fail('Should have failed')
12511251
} catch (err) {
1252-
console.log('b1 failed with', err)
1252+
// console.log('b1 failed with', err)
12531253
t.is(err.code, 'REQUEST_CANCELLED')
12541254
}
12551255

12561256
// console.log('awaiting cancelling')
12571257
await cancelling
12581258

1259-
console.log('checking a')
1259+
// console.log('checking a')
12601260
t.alike(await b2, b4a.from('a'))
1261-
console.log('checking b')
1261+
// console.log('checking b')
12621262
t.alike(await s2.get(1), b4a.from('b'))
1263-
console.log('closing s2')
1263+
// console.log('closing s2')
12641264
await s2.close()
12651265

1266-
console.log('closing a')
1266+
// console.log('closing a')
12671267
await a.close()
1268-
console.log('closing b')
1268+
// console.log('closing b')
12691269
await b.close()
1270-
console.log('test done')
1270+
// console.log('test done')
12711271
})
12721272
}
12731273

0 commit comments

Comments
 (0)