Skip to content

Commit

Permalink
Don't Run OpenAI v4 Tests Against Node 14 (#4270)
Browse files Browse the repository at this point in the history
* fix tests

* make it clearer
  • Loading branch information
sabrenner authored and tlhunter committed Apr 29, 2024
1 parent 77c9a77 commit a95cd3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/datadog-plugin-openai/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ const agent = require('../../dd-trace/test/plugins/agent')
const { DogStatsDClient } = require('../../dd-trace/src/dogstatsd')
const { NoopExternalLogger } = require('../../dd-trace/src/external-logger/src')
const Sampler = require('../../dd-trace/src/sampler')
const { DD_MAJOR } = require('../../../version')

const tracerRequirePath = '../../dd-trace'

const VERSIONS_TO_TEST = DD_MAJOR >= 4 ? '>=3' : '>=3 <4'

describe('Plugin', () => {
let openai
let clock
Expand All @@ -23,7 +26,7 @@ describe('Plugin', () => {
let realVersion

describe('openai', () => {
withVersions('openai', 'openai', version => {
withVersions('openai', 'openai', VERSIONS_TO_TEST, version => {
const moduleRequirePath = `../../../versions/openai@${version}`

beforeEach(() => {
Expand Down

0 comments on commit a95cd3c

Please sign in to comment.