Skip to content

Commit

Permalink
test: added delay
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamohanan committed Dec 3, 2024
1 parent 4a9d0ea commit fb22a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/collector/test/tracing/database/ioredis/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ function checkConnection(span, setupType) {
})
.then(async () => {
return retry(async () => {
await delay(1000);
const spans = await customAgentControls.getSpans();
// 1 x http entry span
expect(spans.length).to.equal(1);
Expand Down
1 change: 1 addition & 0 deletions packages/collector/test/tracing/database/redis/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ const globalAgent = require('../../../globalAgent');
})
.then(async () => {
return retry(async () => {
await delay(1000);
const spans = await customAgentControls.getSpans();
// 1 x http entry span
// 1 x http client span
Expand Down

0 comments on commit fb22a81

Please sign in to comment.