diff --git a/packages/backend-core/tests/core/utilities/minio.ts b/packages/backend-core/tests/core/utilities/minio.ts index 81484c53f3..cef33daa91 100644 --- a/packages/backend-core/tests/core/utilities/minio.ts +++ b/packages/backend-core/tests/core/utilities/minio.ts @@ -11,7 +11,7 @@ class ObjectStoreWaitStrategy extends AbstractWaitStrategy { } } -export async function start(): Promise<{ host: string; port: number }> { +export async function start(): Promise { container = await new GenericContainer("minio/minio") .withExposedPorts(9000) .withCommand(["server", "/data"]) @@ -22,10 +22,8 @@ export async function start(): Promise<{ host: string; port: number }> { .withWaitStrategy(new ObjectStoreWaitStrategy().withStartupTimeout(30000)) .start() - const host = container.getHost() const port = container.getMappedPort(9000) - env._set("MINIO_URL", `http:/${host}:${port}`) - return { host, port } + env._set("MINIO_URL", `http://0.0.0.0:${port}`) } export async function stop() { diff --git a/packages/worker/src/api/routes/global/tests/realEmail.spec.ts b/packages/worker/src/api/routes/global/tests/realEmail.spec.ts index f7bf69b903..4bc047b758 100644 --- a/packages/worker/src/api/routes/global/tests/realEmail.spec.ts +++ b/packages/worker/src/api/routes/global/tests/realEmail.spec.ts @@ -5,6 +5,7 @@ import { EmailTemplatePurpose } from "../../../../constants" import { objectStoreTestProviders, mocks } from "@budibase/backend-core/tests" import { objectStore } from "@budibase/backend-core" import tk from "timekeeper" + const nodemailer = require("nodemailer") const fetch = require("node-fetch")