File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function CollectionBinaryDocumentSuite () {
48
48
return {
49
49
setUp : function ( ) {
50
50
db . _drop ( cn ) ;
51
- collection = db . _create ( cn , { waitForSync : false } ) ;
51
+ collection = db . _create ( cn ) ;
52
52
} ,
53
53
54
54
tearDown : function ( ) {
@@ -61,7 +61,11 @@ function CollectionBinaryDocumentSuite () {
61
61
} ,
62
62
63
63
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
+ }
65
69
const content = fs . readFileSync ( filename1 ) ;
66
70
67
71
const d1 = collection . _binaryInsert ( { _key : "test" , meta : "hallo" } , filename1 ) ;
You can’t perform that action at this time.
0 commit comments