8000 adjust file path · soualid/arangodb@9563509 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9563509

Browse files
committed
adjust file path
1 parent 024a9d7 commit 9563509

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/js/server/shell/shell-binary-document.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function CollectionBinaryDocumentSuite () {
4848
return {
4949
setUp : function () {
5050
db._drop(cn);
51-
collection = db._create(cn, { waitForSync : false });
51+
collection = db._create(cn);
5252
},
5353

5454
tearDown : function () {
@@ -61,7 +61,11 @@ function CollectionBinaryDocumentSuite () {
6161
},
6262

6363
testBinaryDocument : function () {
64-
const filename1 = path.resolve('js/apps/system/_admin/aardvark/APP/frontend/img/arangodb_logo_letter.png'.split('/').join(path.sep));
64+
let filename1 = path.resolve('js/apps/system/_admin/aardvark/APP/frontend/img/arangodb_logo_letter.png'.split('/').join(path.sep));
65+
if (!fs.exists(filename1)) {
66+
// look for version-specific file
67+
filename1 = path.resolve('js/' + db._version().replace(/-.*$/, '') + '/apps/system/_admin/aardvark/APP/frontend/img/arangodb_logo_letter.png'.split('/').join(path.sep));
68+
}
6569
const content = fs.readFileSync(filename1);
6670

6771
const d1 = collection._binaryInsert({_key: "test", meta: "hallo"}, filename1);

0 commit comments

Comments
 (0)
0