Skip to content

Commit d2f40c2

Browse files
authoredFeb 14, 2024··
test: Cleaned up pending mocks in the log dropping test to avoid a console warning around pending mocks in after each (#2017)
1 parent faebfe0 commit d2f40c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎test/unit/collector/api.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ tap.test('reportSettings', (t) => {
7777
})
7878

7979
t.test('handles excessive payload sizes without blocking subsequent sends', (t) => {
80+
// remove the nock to agent_settings from beforeEach to avoid a console.error on afterEach
81+
nock.cleanAll()
8082
const tstamp = 1_707_756_300_000 // 2024-02-12T11:45:00.000-05:00
8183
function log(data) {
8284
return JSON.stringify({

0 commit comments

Comments
 (0)
Please sign in to comment.