Skip to content

Commit

Permalink
Adding back the after block in e2e-direct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Sep 26, 2024
1 parent bd0bd7b commit c4b9f35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/e2e-tests/test/e2e-direct.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit c4b9f35

Please sign in to comment.