Skip to content

Commit

Permalink
remove child process related code
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Oct 1, 2018
1 parent fc3534c commit 713eba9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
8 changes: 0 additions & 8 deletions src/autoproj/interface.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import { EventEmitter } from "events";

export interface IProcess extends EventEmitter {
stdout: EventEmitter;
stderr: EventEmitter;
kill(signal: string): void;
}

export interface IVCS {
type: string;
url: string;
Expand Down
16 changes: 0 additions & 16 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,6 @@ export function addPackageToManifest(ws, path: string[], partialInfo: { [key: st
return result;
}

// tslint:disable-next-line:max-classes-per-file
class ProcessMock extends EventEmitter implements Autoproj.IProcess {
public stdout = new EventEmitter();
public stderr = new EventEmitter();
public killSignal: string | undefined;
public kill(signal: string) {
this.killSignal = signal;
this.emit("exit", undefined, 2);
}
}

export function createProcessMock(): ProcessMock {
return new ProcessMock();
}

// tslint:disable-next-line:max-classes-per-file
export class TestSetup {
public mockWrapper: TypeMoq.IMock<Wrappers.VSCode>;
get wrapper() {
Expand Down

0 comments on commit 713eba9

Please sign in to comment.