We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd2b7a3 commit e77658cCopy full SHA for e77658c
test/get.js
@@ -409,6 +409,9 @@ t.test('get.stream add new listeners post stream creation', (t) => {
409
// in which the stream has already been created and has the entry data
410
// available, allowing for the validation of the newListener event handler
411
return index.find(CACHE, KEY)
412
+ // we additionally wait for setTimeout because we want to be as sure as
413
+ // we can the event loop has ticked over after the i/o cycle completes
414
+ .then(() => new Promise((resolve) => setTimeout(resolve, 0)))
415
.then(() => {
416
[
417
'integrity',
0 commit comments