mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-11 10:57:07 +00:00
test(server): distinguish Hub execution sessions
This commit is contained in:
@@ -187,7 +187,7 @@ test("reserved Paseo MCP input does not invalidate replay of an owned execution"
|
||||
type: "hub.execution.agent.create.response",
|
||||
payload: { success: true, executionId: "replayed-execution" },
|
||||
});
|
||||
const providerCreations = hub.providerCreations();
|
||||
const executionProviderCreations = hub.executionProviderCreations();
|
||||
|
||||
hub.beginOwnedCreate("replay-create", "replayed-execution", {
|
||||
mcpServers: {
|
||||
@@ -204,7 +204,7 @@ test("reserved Paseo MCP input does not invalidate replay of an owned execution"
|
||||
agentId: original.payload.agentId,
|
||||
},
|
||||
});
|
||||
expect(hub.providerCreations()).toBe(providerCreations);
|
||||
expect(hub.executionProviderCreations()).toBe(executionProviderCreations);
|
||||
expect(await hub.durableOwnedAgentIds()).toEqual([original.payload.agentId]);
|
||||
});
|
||||
|
||||
|
||||
@@ -820,6 +820,10 @@ export class HubRelationshipHarness {
|
||||
);
|
||||
}
|
||||
|
||||
providerCreations(): number {
|
||||
return this.codex.creations;
|
||||
}
|
||||
|
||||
executionProviderCreations(): number {
|
||||
return this.codex.createdConfigs.filter((config) => config.internal !== true).length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user