test: mysql version bug (#3412)

* test(plugin-workflow): limit mysql version to pass test

* fix(plugin-workflow-delay): fix test case

* fix(plugin-workflow-delay): fix test case
This commit is contained in:
Junyi 2024-01-20 20:59:49 +08:00 committed by GitHub
parent 1260934d2b
commit 3b60ba2cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -136,7 +136,7 @@ jobs:
container: node:${{ matrix.node_version }} container: node:${{ matrix.node_version }}
services: services:
mysql: mysql:
image: mysql:8 image: mysql:8.2 # >= 8.3 will meet unsolved error: https://github.com/nocobase/nocobase/actions/runs/7581141593/job/20653828990?pr=3383
env: env:
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: nocobase MYSQL_DATABASE: nocobase

View File

@ -86,7 +86,7 @@ describe('workflow > instructions > delay', () => {
expect(j2.status).toBe(JOB_STATUS.FAILED); expect(j2.status).toBe(JOB_STATUS.FAILED);
}); });
it('delay to resolve and rollback in downstream node', async () => { it('delay to resolve and downstream node error', async () => {
const n1 = await workflow.createNode({ const n1 = await workflow.createNode({
type: 'delay', type: 'delay',
config: { config: {
@ -97,11 +97,9 @@ describe('workflow > instructions > delay', () => {
const n2 = await workflow.createNode({ const n2 = await workflow.createNode({
type: 'create', type: 'create',
config: { config: {
collection: 'comment', collection: 'notExistsTable',
params: { params: {
values: { values: {},
status: 'should be number but use string to raise an error',
},
}, },
}, },
upstreamId: n1.id, upstreamId: n1.id,