mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
test(server): drop removed service proxy constructor slots
Removing the serviceProxy and serviceProxyPublicBaseUrl parameters shifted the positional VoiceAssistantWebSocketServer arguments in four test harnesses, so providerSnapshotManager and the push sender landed in the wrong slots. The runtime store also goes back to storing entries as given, since port is optional and every reader checks its type.
This commit is contained in:
@@ -337,10 +337,8 @@ function createVoiceAssistantWebSocketServer(params: {
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
createProviderSnapshotManagerStub().manager,
|
||||
undefined,
|
||||
undefined,
|
||||
broker,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -164,7 +164,6 @@ function createServer(
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
sender,
|
||||
createProviderSnapshotManagerStub().manager,
|
||||
);
|
||||
|
||||
@@ -330,7 +330,6 @@ function createServer(options?: {
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
createProviderSnapshotManagerStub().manager,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -196,7 +196,6 @@ function createServer(
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
sender,
|
||||
createProviderSnapshotManagerStub().manager,
|
||||
);
|
||||
|
||||
@@ -56,10 +56,7 @@ export class WorkspaceScriptRuntimeStore {
|
||||
this.removeScriptFromWorkspaceIndex(previous.workspaceId, previous.scriptName);
|
||||
}
|
||||
|
||||
this.entries.set(entryKey, {
|
||||
...entry,
|
||||
port: entry.port ?? null,
|
||||
});
|
||||
this.entries.set(entryKey, { ...entry });
|
||||
this.addScriptToWorkspaceIndex(workspaceKey, entry.scriptName);
|
||||
this.changed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user