mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 17:33:51 +02:00
Preserve chat fixture prefix uniqueness across test runs
Use the complete company UUID instead of a resettable counter. Planning evaluation sources and production guidance are unchanged. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
8538cfce4c
commit
9f5c4e5bd6
2 files changed
+8
-5
No files matched your search
@@ -1080,7 +1080,6 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => {
|
||||
.where(and(inArray(chatConversations.companyId, companyIds), inArray(chatConversations.state, ["active", "waiting"])));
|
||||
}
|
||||
|
||||
let fixtureCompanySequence = 0;
|
||||
async function seedCompany() {
|
||||
const companyId = randomUUID();
|
||||
fixtureCompanies.add(companyId);
|
||||
@@ -1089,7 +1088,7 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => {
|
||||
await db.insert(companies).values({
|
||||
id: companyId,
|
||||
name: `Chat Test ${companyId.slice(0, 8)}`,
|
||||
issuePrefix: `C${(++fixtureCompanySequence).toString(36).padStart(7, "0").toUpperCase()}`,
|
||||
issuePrefix: `C${companyId.replace(/-/g, "").toUpperCase()}`,
|
||||
requireBoardApprovalForNewAgents: false,
|
||||
});
|
||||
const now = new Date();
|
||||
|
||||
Reference in new issue
Block a user