Skip to content

Commit 1ce6ddc

Browse files
committed
rename snapshot manager stop
1 parent 2c8bcc2 commit 1ce6ddc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/cli-v3/src/entryPoints/managed/execution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,7 @@ export class RunExecution {
10341034
this.shutdownReason = reason;
10351035

10361036
this.snapshotPoller?.stop();
1037-
this.snapshotManager?.dispose();
1038-
1037+
this.snapshotManager?.stop();
10391038
this.notifier?.stop();
10401039

10411040
this.taskRunProcess?.unsafeDetachEvtHandlers();

packages/cli-v3/src/entryPoints/managed/snapshot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ describe("SnapshotManager", () => {
313313
expect(manager.queueLength).not.toBe(0);
314314

315315
// Dispose manager before any promises complete
316-
manager.dispose();
316+
manager.stop();
317317

318318
expect(manager.queueLength).toBe(0);
319319

packages/cli-v3/src/entryPoints/managed/snapshot.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,12 @@ export class SnapshotManager {
371371
}
372372
}
373373

374-
public dispose() {
375-
this.sendDebugLog("dispose");
374+
public stop() {
375+
this.sendDebugLog("stop");
376376

377377
// Clear any pending changes
378378
for (const item of this.changeQueue) {
379-
item.reject(new Error("SnapshotManager disposed"));
379+
item.reject(new Error("SnapshotManager stopped"));
380380
}
381381
this.changeQueue = [];
382382
}

0 commit comments

Comments
 (0)