Skip to content

Commit

Permalink
move timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Oct 11, 2023
1 parent 498e14f commit 5ec9fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/suite/pest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function timeout(seconds: any, callback: any) {

suite("Better PHPUnit Test Suite", function () {
before(async () => {
this.timeout(5000)
fs.renameSync(path.join(path.join(vscode.workspace.rootPath, 'composer.json')), path.join(path.join(vscode.workspace.rootPath, 'composer.json.phpunit')));
fs.renameSync(path.join(path.join(vscode.workspace.rootPath, 'sub-directory', 'composer.json')), path.join(path.join(vscode.workspace.rootPath, 'sub-directory', 'composer.json.phpunit')));

Expand All @@ -29,6 +28,7 @@ suite("Better PHPUnit Test Suite", function () {
});

beforeEach(async () => {
this.timeout(5000)
// Reset the test/project-stub/.vscode/settings.json settings for each test.
// This allows us to test config options in tests and not harm other tests.
await vscode.workspace.getConfiguration('better-phpunit').update('commandSuffix', null);
Expand Down

0 comments on commit 5ec9fb5

Please sign in to comment.