mirror of https://gitee.com/bigwinds/arangodb
fix windows path escaping in testcase (#6833)
This commit is contained in:
parent
9d2da2c22c
commit
01086a767a
|
@ -40,8 +40,10 @@ function RequireCanceledTestSuite() {
|
|||
|
||||
return {
|
||||
setUp() {
|
||||
// When running with windows paths, we need to escape them:
|
||||
let path = pathForTesting('common/test-data/modules').replace(/\\/g, '\\\\');
|
||||
arango.POST_RAW("/_admin/execute",
|
||||
"require('module').globalPaths.unshift(require('path').resolve('./" + pathForTesting('common/test-data/modules') + "'));", {
|
||||
"require('module').globalPaths.unshift(require('path').resolve('./" + path + "'));", {
|
||||
'x-arango-v8-context': 0
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue