1
0
Fork 0

fix windows path escaping in testcase (#6833)

This commit is contained in:
Wilfried Goesgens 2018-10-11 18:32:34 +02:00 committed by Jan
parent 9d2da2c22c
commit 01086a767a
1 changed files with 37 additions and 35 deletions

View File

@ -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
});
},