Skip to content

Commit 74deb4a

Browse files
committed
Reduce logging around probable cause
1 parent ddf5fdd commit 74deb4a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/test-node.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version: [lts/*]
18-
os: [ubuntu-latest, macos-latest, windows-latest]
18+
os: [macos-latest]
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 https://github.com/actions/checkout/releases/tag/v4.1.1

test/replicate.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1236,23 +1236,24 @@ for (let i = 0; i < 500; i++) {
12361236
const s2 = b.session()
12371237

12381238
const cancelling = waitForRequestBlock(s1).then(() => {
1239-
console.log('calling close on s1')
1240-
return s1.close()
1239+
const res = s1.close()
1240+
console.log('called close on s1')
1241+
return res
12411242
})
12421243

12431244
const b1 = s1.get(0)
12441245
const b2 = s2.get(0)
12451246

12461247
try {
1247-
console.log('awaiting b1')
1248+
// console.log('awaiting b1')
12481249
await b1
1249-
t.fail('Should have failed')
1250+
// t.fail('Should have failed')
12501251
} catch (err) {
12511252
console.log('b1 failed with', err)
12521253
t.is(err.code, 'REQUEST_CANCELLED')
12531254
}
12541255

1255-
console.log('awaiting cancelling')
1256+
// console.log('awaiting cancelling')
12561257
await cancelling
12571258

12581259
console.log('checking a')

0 commit comments

Comments
 (0)