使用多线程重用空手道功能时出错 [英] Error when reusing karate features with multithreading
问题描述
以下代码适用于单线程:
The following code works fine with a single thread:
* def validateAricle = 'file:features/Articles.feature@validateArticle'
* def articles = {"id": 12}
* call read(validateArticle) articles
但有多个线程时出现以下错误
but having more than one thread I get the following error
Multi threaded access requested by thread Thread[pool-5-thread-1,5,main] but is not allowed for language(s) js.
这个错误可以从 1.0.1 版本中重现(我在 1.0.0 版本中也会发生这种情况).在更新到 1.0.0 版之前,我没有遇到重用功能的问题
This error can be reproduced from version 1.0.1 (it also happens to me in version 1.0.0). Before updating to version 1.0.0 I had no problems reusing features
推荐答案
是的,我们希望我们已经在 develop
分支中修复了这个问题:https://github.com/intuit/karate/issues/1558
Yes, we hope we have fixed this in the develop
branch: https://github.com/intuit/karate/issues/1558
您现在可以做的最好的事情(并帮助加快发布)是遵循开发人员指南,从源代码构建,然后验证它是否适用于您的边缘情况:https://github.com/intuit/karate/wiki/Developer-Guide
The best thing you can do now (and to help expedite a release) is to follow the developer guide, build from source and then verify that it works for your edge case: https://github.com/intuit/karate/wiki/Developer-Guide
如果没有,请按照此过程进行复制非常重要:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
If not, it is very important that you follow this process to replicate: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
我希望这可以提醒大家,请测试我们花费的RC版本大量时间用于发布(1.X 需要几个月).
And I hope that this can be a reminder to everyone that please test the RC versions that we spend so much time on releasing (a few months for 1.X).
这篇关于使用多线程重用空手道功能时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!