Skip to content

Commit

Permalink
fix(core): don't dispose env because it happens to early
Browse files Browse the repository at this point in the history
for now it won't cause any issues, because existing workflow will free resources when initial host
process is terminated
  • Loading branch information
Igmat committed Mar 7, 2018
1 parent 36b9103 commit ef3b5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/baset-core/src/testGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export class TestGroup {
: new Promise<string>(resolve => resolve(''));

const output = await this.baseliner.compare(testsResults, baselineValue);
this.environment && this.environment.dispose();
// FIXME: find out why next disposal happens before result are calculated
// after test proccess termination server is stopped, so it's not an issue now
// this.environment && this.environment.dispose();

return {
path: baselinePath,
Expand Down
2 changes: 1 addition & 1 deletion packages/baset-env-browser/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AbstractEnvironment, utils } from 'baset-core';
import express from 'express';
import path from 'path';
import { Server } from 'http';
import path from 'path';

export interface IBrowserEnvOptions {
staticFolder?: string;
Expand Down

0 comments on commit ef3b5fa

Please sign in to comment.