Skip to content

Commit 13637a8

Browse files
szegedirochdev
authored andcommitted
Fix flaky test (#6229)
1 parent a3e6f84 commit 13637a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/dd-trace/test/profiling/profilers/poisson.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ describe('PoissonProcessSamplingFilter', () => {
6565
resetInterval: 20,
6666
now: constantNow
6767
})
68-
const event = { startTime: 0, duration: 100 }
68+
assert.strictEqual(callCount, 1)
69+
const event = { startTime: 0, duration: Number.POSITIVE_INFINITY }
6970
assert.doesNotThrow(() => filter.filter(event))
7071
assert.strictEqual(callCount, 2)
7172
})

0 commit comments

Comments
 (0)