Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✅ test(server): pin seeded message timestamps in execAgent topic-reuse case (#18783)

Innei9a34bdc23ef2
diff --git a/apps/server/src/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts b/apps/server/src/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
index 5730b226945..73873f342a8 100644
--- a/apps/server/src/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
@@ -173,6 +173,7 @@ describe('execAgent', () => {
.values({
agentId: testAgentId,
content: 'Initial question',
+ createdAt: new Date('2024-01-01T00:00:00Z'),
role: 'user',
topicId: existingTopic.id,
userId,
@@ -183,6 +184,7 @@ describe('execAgent', () => {
.values({
agentId: testAgentId,
content: 'Initial answer',
+ createdAt: new Date('2024-01-01T00:00:01Z'),
parentId: seedUserMessage.id,
role: 'assistant',
topicId: existingTopic.id,