Skip to content

Commit 2077ce3

Browse files
authored
test: Hardened batch-span-streamer.test.js to avoid random failures in CI (newrelic#3338)
1 parent 0d01e29 commit 2077ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/spans/batch-span-streamer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ test('BatchSpanStreamer', async (t) => {
225225
`SENT metric incremented to ${SPANS + 1}`
226226
)
227227
end()
228-
}, spanStreamer.queueInterval)
228+
}, spanStreamer.queueInterval + 10) // delay a bit more than queueInterval to avoid clock skew
229229
})
230230
})

0 commit comments

Comments
 (0)