From 6a4c7c91791ff66de64962f07aee03255a208fd0 Mon Sep 17 00:00:00 2001 From: Svetlana Brennan <50715937+svetlanabrennan@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:06:51 -0500 Subject: [PATCH] Remove v1 versioned tests --- tests/versioned/koa-v1.tap.js | 57 ----------------------------------- tests/versioned/package.json | 19 ------------ 2 files changed, 76 deletions(-) delete mode 100644 tests/versioned/koa-v1.tap.js diff --git a/tests/versioned/koa-v1.tap.js b/tests/versioned/koa-v1.tap.js deleted file mode 100644 index 9ab5994..0000000 --- a/tests/versioned/koa-v1.tap.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2020 New Relic Corporation. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -/* eslint-env es6 */ -'use strict' - -const tap = require('tap') -const utils = require('@newrelic/test-utilities') -const http = require('http') -const hooks = require('../../nr-hooks') - -tap.test('Koa v1', function (t) { - let helper = null - let app = null - let server = null - - helper = utils.TestAgent.makeInstrumented() - helper.registerInstrumentation(hooks[0]) - const koa = require('koa') - app = koa() - - t.tearDown(function () { - server && server.close() - app = null - helper && helper.unload() - }) - - t.test('is not instrumented', function (t) { - app.use(function* main() { - this.body = 'done' - }) - - helper.agent.on('transactionFinished', function (tx) { - const segment = tx.trace.root.children[0] - t.equal(segment.name, 'WebTransaction/NormalizedUri/*') - t.end() - }) - - run() - }) - - t.autoend() - - function run() { - server = app.listen(0, function () { - http - .get({ port: server.address().port }, function (res) { - if (res.body) { - t.equal(res.body, 'done') - } - }) - .end() - }) - } -}) diff --git a/tests/versioned/package.json b/tests/versioned/package.json index 0582ef9..42f0bce 100644 --- a/tests/versioned/package.json +++ b/tests/versioned/package.json @@ -3,25 +3,6 @@ "version": "0.0.0", "private": true, "tests": [ - { - "engines": { - "node": ">=16" - }, - "dependencies": { - "koa": { - "versions": "^1.5.0", - "samples": 5 - } - }, - "files": [ - "koa-v1.tap.js" - ], - "notes": [ - "Koa <2.5.2 had debug as a wide-open dependency (semver check was `*`).", - "Debug v4 dropped support for Node <6, thus rendering these older versions", - "of Koa inoperable on Node <6." - ] - }, { "engines": { "node": ">=16"