How can a global dispatcher be used in tests while a local dispatcher is used for proxy support? #3792
Unanswered
parkerbxyz
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Possibly related: #3444 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using a local
EnvHttpProxyAgent
dispatcher for proxy support. For testing, we have a globalMockAgent
dispatcher set. The global dispatcher is not being used when the local dispatcher is set, as demonstrated in the following example:Is this the intended behavior, or is this a bug? If it is the intended behavior, is there another way we can use a global dispatcher in tests without it being overridden by the local dispatcher?
Beta Was this translation helpful? Give feedback.
All reactions