File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1911,7 +1911,7 @@ async function httpNetworkFetch (
1911
1911
path : url . pathname + url . search ,
1912
1912
origin : url . origin ,
1913
1913
method : request . method ,
1914
- body : fetchParams . controller . dispatcher . isActive ? request . body && request . body . source : body ,
1914
+ body : fetchParams . controller . dispatcher . isMockActive ? request . body && request . body . source : body ,
1915
1915
headers : [ ...request . headersList ] . flat ( ) ,
1916
1916
maxRedirections : 0 ,
1917
1917
bodyTimeout : 300_000 ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class MockAgent extends Dispatcher {
98
98
99
99
// This is required to bypass issues caused by using global symbols - see:
100
100
// https://github.com/nodejs/undici/issues/1447
101
- get isActive ( ) {
101
+ get isMockActive ( ) {
102
102
return this [ kIsMockActive ]
103
103
}
104
104
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ function buildMockDispatch () {
301
301
const originalDispatch = this [ kOriginalDispatch ]
302
302
303
303
return function dispatch ( opts , handler ) {
304
- if ( agent . isActive ) {
304
+ if ( agent . isMockActive ) {
305
305
try {
306
306
mockDispatch . call ( this , opts , handler )
307
307
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments