mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 07:54:38 +00:00
test(server): exclude internal sessions from Hub counts
This commit is contained in:
@@ -434,7 +434,7 @@ describe("Hub relationship", () => {
|
||||
});
|
||||
expect(relationship.relationshipFile()?.relationship.daemonId).toBe(daemonId);
|
||||
expect(durableAgentIds).toEqual([created.payload.agentId]);
|
||||
expect(relationship.providerCreations()).toBe(1);
|
||||
expect(relationship.executionProviderCreations()).toBe(1);
|
||||
expect(relationship.providerResumes()).toBe(0);
|
||||
expect(relationship.providerPromptTexts()).toEqual([prompt]);
|
||||
expect(relationship.latestOwnedTurnCompletions(created.payload.agentId!)).toBe(0);
|
||||
@@ -599,7 +599,7 @@ describe("Hub relationship", () => {
|
||||
agentId: durableAgentIds[0],
|
||||
},
|
||||
});
|
||||
expect(relationship.providerCreations()).toBe(1);
|
||||
expect(relationship.executionProviderCreations()).toBe(1);
|
||||
expect(durableAgentIds).toHaveLength(1);
|
||||
});
|
||||
|
||||
@@ -624,7 +624,7 @@ describe("Hub relationship", () => {
|
||||
agent: { id: expect.any(String) },
|
||||
},
|
||||
});
|
||||
expect(relationship.providerCreations()).toBe(1);
|
||||
expect(relationship.executionProviderCreations()).toBe(1);
|
||||
expect(await relationship.durableOwnedAgentIds()).toHaveLength(1);
|
||||
});
|
||||
|
||||
|
||||
@@ -820,8 +820,8 @@ export class HubRelationshipHarness {
|
||||
);
|
||||
}
|
||||
|
||||
providerCreations(): number {
|
||||
return this.codex.creations;
|
||||
executionProviderCreations(): number {
|
||||
return this.codex.createdConfigs.filter((config) => config.internal !== true).length;
|
||||
}
|
||||
|
||||
providerResumes(): number {
|
||||
|
||||
Reference in New Issue
Block a user