Skip to content

Commit

Permalink
test: try all before each
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika committed May 24, 2024
1 parent 9f42776 commit b6f90a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/suite/oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sinon from 'sinon';
import type { SinonStub } from 'sinon';
import * as vscode from 'vscode';
import { createHash } from 'crypto';
import { before, afterEach, beforeEach } from 'mocha';
import { afterEach, beforeEach } from 'mocha';
import EventEmitter, { once } from 'events';
import { ExtensionContextStub } from './stubs';
import { StorageController } from '../../storage';
Expand Down Expand Up @@ -99,7 +99,7 @@ suite.only('OIDC Tests', function () {
resolveReAuthPromise = resolve;
});

before(async function () {
beforeEach(async function () {
if (process.platform !== 'linux') {
// OIDC is only supported on Linux in the 7.0+ enterprise server.
return this.skip();
Expand All @@ -121,9 +121,7 @@ suite.only('OIDC Tests', function () {

tmpdir = path.join(os.tmpdir(), `vscode-oidc-${Date.now().toString(32)}`);
await fs.mkdir(path.join(tmpdir, 'db'), { recursive: true });
});

beforeEach(async function () {
const serverOidcConfig = {
issuer: oidcMockProvider.issuer,
clientId: 'testServer',
Expand Down

0 comments on commit b6f90a4

Please sign in to comment.