test: prove P1 configuration process end to end
This commit is contained in:
@@ -498,9 +498,6 @@ export class WorkspaceRegistry {
|
||||
private async activate(commit: string): Promise<void> {
|
||||
const safeHead = safeCommit(commit);
|
||||
const files = await this.repository.workspacePaths();
|
||||
if (files.length === 0) {
|
||||
throw new WorkspaceRegistryError("workspace_invalid", "Workspace repository contains no workspaces");
|
||||
}
|
||||
|
||||
const snapshots: Array<{
|
||||
id: string;
|
||||
@@ -643,7 +640,7 @@ export class WorkspaceRegistry {
|
||||
|
||||
private assertActiveState(state: ActiveState): void {
|
||||
safeCommit(state.head);
|
||||
if (!Array.isArray(state.revisions) || state.revisions.length === 0) throw new Error("bad state");
|
||||
if (!Array.isArray(state.revisions)) throw new Error("bad state");
|
||||
const ids = new Set<string>();
|
||||
for (const revision of state.revisions) {
|
||||
safeCommit(revision.commit);
|
||||
|
||||
Reference in New Issue
Block a user