Skip to content

Commit f3b8ec9

Browse files
committed
add more tests for the graal troubles #1558
1 parent 124da2c commit f3b8ec9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

karate-core/src/test/java/com/intuit/karate/core/parallel/karate-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function fn() {
55
};
66
var result = karate.callSingle('call-single-from-config.feature', config);
77
config.message = result.response.message;
8-
// this will throw the [Multi threaded access requested by thread xxx but is not allowed for language(s) js.] error
8+
// this used to throw the [Multi threaded access requested by thread xxx but is not allowed for language(s) js.] error
99
config.Hello = result.Hello;
1010
var result2 = karate.callSingle('call-single-from-config2.feature', result);
1111
config.message2 = result2.message;

karate-core/src/test/java/com/intuit/karate/core/parallel/parallel-outline-1.feature

+5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ Background:
55
# background http builder should work even for a dynamic scenario outline
66
* url serverUrl
77
* def data = [ { name: 'value1' }, { name: 'value2' }, { name: 'value3' }, { name: 'value4' } ]
8+
# java object that comes from a callSingle in the config
9+
* def helloClass = Hello
810

911
Scenario Outline:
1012
* match functionFromKarateBase() == 'fromKarateBase'
1113
* path 'fromfeature'
1214
* method get
1315
* status 200
1416
* match response == { message: 'from feature' }
17+
# use java object from background, callSingle, config
18+
* match helloClass.sayHello('from the other side') == 'hello from the other side'
19+
* match helloClass.sayHello(name) == 'hello ' + name
1520

1621
Examples:
1722
| data |

0 commit comments

Comments
 (0)