Skip to content

Commit

Permalink
fix(fullstack): tests broken on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Jan 11, 2022
1 parent d6dde28 commit 7bd9ff9
Show file tree
Hide file tree
Showing 13 changed files with 365 additions and 407 deletions.
8 changes: 4 additions & 4 deletions core/injected-scripts/MouseEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class MouseEvents {
private static targetNodeId: number;
private static containerOffset: { x: number; y: number } = { x: 0, y: 0 };

public static init() {
this.onMousedown = this.onMousedown.bind(this);
}

public static listenFor(
nodeId: number,
containerOffset: { x: number; y: number },
Expand All @@ -32,10 +36,6 @@ class MouseEvents {
return visibility;
}

public static init() {
this.onMousedown = this.onMousedown.bind(this);
}

public static didTrigger(nodeId: number) {
try {
if (this.targetNodeId !== nodeId) {
Expand Down
4 changes: 4 additions & 0 deletions core/lib/GlobalPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export default class GlobalPool {
closePromises.push(puppetBrowser.close().catch(err => err));
}
MitmProxy.close();
if (this.mitmStartPromise) {
this.mitmStartPromise.then(x => x.close()).catch(() => null);
this.mitmStartPromise = null;
}
if (this.mitmServer) {
this.mitmServer.close();
this.mitmServer = null;
Expand Down
Loading

0 comments on commit 7bd9ff9

Please sign in to comment.