Skip to content

Commit b1bedff

Browse files
committed
MLE-24733 Enabling multipleWorker test again
Added Copilot-suggested fix for the "before()" function to not finish before the first test, which seems to be the problem?
1 parent 124d192 commit b1bedff

File tree

2 files changed

+311
-204
lines changed

2 files changed

+311
-204
lines changed

Jenkinsfile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,15 @@ def runE2ETests() {
9292
gulp loadToModulesDB
9393
gulp generateFnClasses
9494
gulp copyFnClasses
95-
# Adding sleep for the gulp commands to complete.
96-
sleep 30
9795
cp *.js ../test-complete/
9896
cp -R ml-modules/ ../test-complete
9997
cd ../test-complete
100-
../node_modules/.bin/mocha -R xunit --timeout 60000 nodejs-ds-setup-docs.js
101-
../node_modules/.bin/mocha -R xunit --timeout 60000 "nodejs-ds-required-params.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-required-params-results.xml || true
102-
../node_modules/.bin/mocha -R xunit --timeout 60000 "nodejs-ds-error-map.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-multipleWorker-results.xml || true
103-
104-
# Disabling this for now, failing with the new all-mlDeploy setup for unknown reasons.
105-
# ../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-multipleWorker.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-multipleWorker-results.xml || true
106-
107-
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-transactions.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-transactions-results.js.xml || true
108-
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-dynamic.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-dynamic-results.xml || true
98+
../node_modules/.bin/mocha -R xunit --timeout 20000 nodejs-ds-setup-docs.js
99+
../node_modules/.bin/mocha -R xunit --timeout 20000 "nodejs-ds-required-params.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-required-params-results.xml || true
100+
../node_modules/.bin/mocha -R xunit --timeout 20000 "nodejs-ds-error-map.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-multipleWorker-results.xml || true
101+
../node_modules/.bin/mocha -R xunit --timeout 20000 "nodejs-ds-multipleWorker.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-multipleWorker-results.xml || true
102+
../node_modules/.bin/mocha -R xunit --timeout 20000 "nodejs-ds-transactions.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-transactions-results.js.xml || true
103+
../node_modules/.bin/mocha -R xunit --timeout 20000 "nodejs-ds-dynamic.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-dynamic-results.xml || true
109104
'''
110105
junit '**/*.xml'
111106
}

0 commit comments

Comments
 (0)