#"Payment" module error running integration tests

2 messages · Page 1 of 1 (latest)

cinder island
#

Hello. Has anyone run into the error below? I'm getting it while running integration tests in a vanilla Medusa 2.4.0 install. I wonder if it's not running some setup/migrations in its temporary database?

2025-02-04T16:17:19.9680345Z   ●  › Ping › ping the server health endpoint
2025-02-04T16:17:19.9682508Z     Loaders for module Payment failed: select "p0".* from "medusa"."payment_provider" as "p0" where "p0"."deleted_at" is null and "p0"."id" in ('pp_stripe-przelewy24_stripe', 'pp_stripe_stripe', 'pp_stripe-ideal_stripe', 'pp_stripe-giropay_stripe', 'pp_stripe-blik_stripe', 'pp_stripe-bancontact_stripe', 'pp_system_default') order by "p0"."id" asc - relation "medusa.payment_provider" does not exist
2025-02-04T16:17:19.9685026Z       at runLoaders (node_modules/@medusajs/modules-sdk/src/loaders/utils/load-internal.ts:667:14)
2025-02-04T16:17:19.9686133Z       at loadInternalModule (node_modules/@medusajs/modules-sdk/src/loaders/utils/load-internal.ts:286:17)
2025-02-04T16:17:19.9687174Z       at loadModule (node_modules/@medusajs/modules-sdk/src/loaders/module-loader.ts:82:10)
[...]
2025-02-04T16:17:19.9691194Z       at loadModules (node_modules/@medusajs/modules-sdk/src/medusa-app.ts:153:19)
2025-02-04T16:17:19.9692016Z       at MedusaApp_ (node_modules/@medusajs/modules-sdk/src/medusa-app.ts:385:22)
2025-02-04T16:17:19.9692831Z       at MedusaApp (node_modules/@medusajs/modules-sdk/src/medusa-app.ts:586:10)
2025-02-04T16:17:19.9694123Z       at MedusaAppLoader.load (node_modules/@medusajs/framework/src/medusa-app-loader.ts:247:23)
2025-02-04T16:17:19.9696724Z       at Object.beforeAll_ (node_modules/@medusajs/test-utils/src/medusa-test-runner.ts:134:25)
cinder island
#

I think there's a bug where custom DB schema name is not honoured, and "public" is still used for migrations.