From c4b9f352d5ebfcaee8be4a879f5d0d514c85e075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Thu, 26 Sep 2024 09:49:25 +0200 Subject: [PATCH] Adding back the after block in e2e-direct tests --- packages/e2e-tests/test/e2e-direct.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/e2e-tests/test/e2e-direct.spec.ts b/packages/e2e-tests/test/e2e-direct.spec.ts index e4f5e0aec..913cdfc7c 100644 --- a/packages/e2e-tests/test/e2e-direct.spec.ts +++ b/packages/e2e-tests/test/e2e-direct.spec.ts @@ -82,6 +82,13 @@ describe('e2e direct connection', function () { await shell.executeLine('db.testcollection.insertOne({})'); shell.writeInputLine('exit'); }); + after(async function () { + const shell = this.startTestShell({ + args: [await rs0.connectionString()], + }); + await shell.executeLine(`db.getSiblingDB("${dbname}").dropDatabase()`); + shell.writeInputLine('exit'); + }); context('connecting to secondary members directly', function () { it('works when specifying a connection string', async function () {