Skip to content

Commit

Permalink
chore: debug ci test failure (working locally)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Mar 5, 2025
1 parent dd2cd35 commit eb56e82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/backend/src/tests/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ export const createTestApp = async (
const knex = await container.use('knex')

if (caller) {
console.log(caller, { tenants: Tenant.query(knex) })
// It seems that the `start` method throws an error sometimes because
// it cant find a tenant (by config.operatorTenantId). See TenantNotFund error
// on tenant service, tenant resolver, tenant settings.
// Not sure why - truncateTables that truncates tenants? then they arent there for next test?
// - is that how it works? I think we should never truncate tenants then. or if we do, re-add them if we do.
console.log(caller, { tenants: await Tenant.query(knex) })
}

const app = new App(container)
Expand Down

0 comments on commit eb56e82

Please sign in to comment.