Skip to content

Commit

Permalink
Reduce dogstatsd flakyness (#4061)
Browse files Browse the repository at this point in the history
  • Loading branch information
uurien authored and tlhunter committed Feb 14, 2024
1 parent a365fa9 commit 7ef57c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dd-trace/test/dogstatsd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ describe('dogstatsd', () => {
})

it('should fail over to UDP when receiving network error from agent', (done) => {
setTimeout(() => {
udp4.send = sinon.stub().callsFake(() => {
try {
expect(udp4.send).to.have.been.called
expect(udp4.send.firstCall.args[0].toString()).to.equal('test.foo:10|c\n')
Expand All @@ -331,7 +331,7 @@ describe('dogstatsd', () => {
} catch (e) {
done(e)
}
}, 10)
})

statusCode = null

Expand Down

0 comments on commit 7ef57c2

Please sign in to comment.