Skip to content

Commit

Permalink
test(rum-core): add timeout to CORS test
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Jan 8, 2025
1 parent 25143ab commit e910015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rum-core/test/common/xhr-patch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ describe('xhrPatch', function () {
const req = new window.XMLHttpRequest()
const getEvents = registerEventListener(req)
req.open('GET', 'https://elastic.co/guide', true)
req.timeout = 1
req.addEventListener('loadend', () => {
expect(getEvents(done).map(e => e.event)).toEqual(['schedule', 'invoke'])
})
Expand Down

0 comments on commit e910015

Please sign in to comment.