Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b2c09b2

Browse files
test: fix daemon config setting
1 parent 94efd70 commit b2c09b2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/setup/spawn-daemons.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ function startDisposableDaemons (callback) {
2828
const configValues = {
2929
Bootstrap: [],
3030
Discovery: {},
31-
API: {
32-
'HTTPHeaders.Access-Control-Allow-Origin': ['*'],
33-
'HTTPHeaders.Access-Control-Allow-Credentials': 'true',
34-
'HTTPHeaders.Access-Control-Allow-Methods': ['PUT', 'POST', 'GET']
35-
}
31+
'API.HTTPHeaders.Access-Control-Allow-Origin': ['*'],
32+
'API.HTTPHeaders.Access-Control-Allow-Credentials': 'true',
33+
'API.HTTPHeaders.Access-Control-Allow-Methods': ['PUT', 'POST', 'GET']
3634
}
3735

3836
eachSeries(Object.keys(configValues), (configKey, cb) => {
39-
nodes[key].setConfig(`API.${configKey}`, JSON.stringify(configValues[configKey]), cb)
37+
nodes[key].setConfig(configKey, JSON.stringify(configValues[configKey]), cb)
4038
}, (err) => {
4139
if (err) {
4240
return cb(err)

0 commit comments

Comments
 (0)