Skip to content

Commit 21af9f5

Browse files
committed
fixup! better ritm test
1 parent dc425bd commit 21af9f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/dd-trace/test/ritm.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Ritm', () => {
5252
})
5353

5454
it('should shim util', () => {
55-
require('util')
55+
require('node:util')
5656
assert.equal(startListener.callCount, 1)
5757
assert.equal(endListener.callCount, 1)
5858
})
@@ -84,7 +84,7 @@ describe('Ritm', () => {
8484

8585
it('should fall back to monkey patched module', () => {
8686
// @ts-expect-error - Patching module works as expected
87-
assert.equal(require('http').foo, 1, 'normal hooking still works')
87+
assert.equal(require('node:http').foo, 1, 'normal hooking still works')
8888

8989
const fnCore = require(mockedModuleName)
9090
assert.ok(fnCore, 'requiring monkey patched in module works')

0 commit comments

Comments
 (0)