Skip to content

Commit

Permalink
changing unit tests to use performance perf_hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
crysmags committed Jun 7, 2024
1 parent a419471 commit ff62ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/datadog-plugin-graphql/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ describe('Plugin', () => {
}

if (span.resource === 'fastAsyncField:String') {
expect(fastAsyncTime).to.be.below(slowAsyncTime)
expect(fastAsyncTime).to.be.lessThan(slowAsyncTime)
foundFastFieldSpan = true
} else if (span.resource === 'slowAsyncField:String') {
expect(slowAsyncTime).to.be.below(syncTime)
expect(slowAsyncTime).to.be.lessThan(syncTime)
foundSlowFieldSpan = true
} else if (span.resource === 'syncField:String') {
expect(syncTime).to.be.above(slowAsyncTime)
expect(syncTime).to.be.greaterThan(slowAsyncTime)
foundSyncFieldSpan = true
}

Expand Down

0 comments on commit ff62ffd

Please sign in to comment.