Commit 7415ce7
committed
test(ci-visibility): fix flaky agent-proxy tests
Add nock.cleanAll() to beforeEach hook to prevent HTTP mock
state leakage between tests. Without proper cleanup, nock
interceptors from previous tests could interfere with
subsequent tests, causing random failures in CI.
This follows the pattern already used in other test files
like exporter.spec.js and request.spec.js.
Fixes 4 flaky tests related to _isGzipCompatible and
evpProxyPrefix assertions.1 parent d119cf2 commit 7415ce7
File tree
1 file changed
+1
-0
lines changed- packages/dd-trace/test/ci-visibility/exporters/agent-proxy
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments