Merge branch 'develop' of github.com:Budibase/budibase into feature/template-urls

This commit is contained in:
Martin McKeaveney 2021-10-26 15:56:30 +02:00
commit 2df75d9b28
3 changed files with 4 additions and 3 deletions

View File

@ -3,9 +3,6 @@ const { EmailTemplatePurpose } = require("../../../constants")
const nodemailer = require("nodemailer")
const fetch = require("node-fetch")
// need a longer timeout for getting these
jest.setTimeout(30000)
describe("/api/global/email", () => {
let request = setup.getRequest()
let config = setup.getConfig()

View File

@ -234,6 +234,7 @@ class TestConfiguration {
user: "don.bahringer@ethereal.email",
pass: "yCKSH8rWyUPbnhGYk9",
},
connectionTimeout: 1000, // must be less than the jest default of 5000
},
},
null,

View File

@ -35,6 +35,9 @@ function createSMTPTransport(config) {
options.tls = {
rejectUnauthorized: false,
}
if (config.connectionTimeout) {
options.connectionTimeout = config.connectionTimeout
}
} else {
options = {
port: 587,