Confirming suspicions about why a testcase is failing in GH actions only.
This commit is contained in:
parent
cc35099ebd
commit
ab0ee7555b
|
@ -170,7 +170,6 @@ describe("/workflows", () => {
|
||||||
expect(res.body.workflow.name).toEqual(TEST_WORKFLOW.name)
|
expect(res.body.workflow.name).toEqual(TEST_WORKFLOW.name)
|
||||||
// wait for workflow to complete in background
|
// wait for workflow to complete in background
|
||||||
for (let tries = 0; tries < MAX_RETRIES; tries++) {
|
for (let tries = 0; tries < MAX_RETRIES; tries++) {
|
||||||
await delay(500)
|
|
||||||
let elements = await getAllFromModel(request, app._id, instance._id, model._id)
|
let elements = await getAllFromModel(request, app._id, instance._id, model._id)
|
||||||
// don't test it unless there are values to test
|
// don't test it unless there are values to test
|
||||||
if (elements.length === 1) {
|
if (elements.length === 1) {
|
||||||
|
@ -179,6 +178,7 @@ describe("/workflows", () => {
|
||||||
expect(elements[0].description).toEqual("TEST")
|
expect(elements[0].description).toEqual("TEST")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
await delay(500)
|
||||||
}
|
}
|
||||||
throw "Failed to find the records"
|
throw "Failed to find the records"
|
||||||
})
|
})
|
||||||
|
|
|
@ -23,7 +23,8 @@ function runWorker(job) {
|
||||||
module.exports.init = function() {
|
module.exports.init = function() {
|
||||||
triggers.workflowQueue.process(async job => {
|
triggers.workflowQueue.process(async job => {
|
||||||
if (environment.BUDIBASE_ENVIRONMENT === "PRODUCTION") {
|
if (environment.BUDIBASE_ENVIRONMENT === "PRODUCTION") {
|
||||||
await runWorker(job)
|
//await runWorker(job)
|
||||||
|
await singleThread(job)
|
||||||
} else {
|
} else {
|
||||||
await singleThread(job)
|
await singleThread(job)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue