mirror of https://gitee.com/bigwinds/arangodb
fixed test
This commit is contained in:
parent
978c12815a
commit
241ad73940
|
@ -531,9 +531,9 @@ static TRI_doc_collection_info_t* Figures (TRI_primary_collection_t* primary) {
|
|||
++info->_numberCompactorfiles;
|
||||
}
|
||||
|
||||
// get information about shape files
|
||||
primary->_shaper->shapefileStats(primary->_shaper, &i, &info->_shapefileSize);
|
||||
info->_numberShapefiles = (TRI_voc_ssize_t) i;
|
||||
// get information about shape files (hard-coded to 0)
|
||||
info->_shapefileSize = 0;
|
||||
info->_numberShapefiles = 0;
|
||||
|
||||
// get number of registered shapes
|
||||
info->_numberShapes = (TRI_voc_ssize_t) primary->_shaper->numShapes(primary->_shaper);
|
||||
|
|
|
@ -704,8 +704,8 @@ function CollectionSuite () {
|
|||
var f = c1.figures();
|
||||
assertEqual(0, f.datafiles.count);
|
||||
assertEqual(0, f.compactors.count);
|
||||
assertEqual(1, f.shapefiles.count);
|
||||
assertTrue(f.shapefiles.fileSize > 0);
|
||||
assertEqual(0, f.shapefiles.count);
|
||||
assertEqual(0, f.shapefiles.fileSize);
|
||||
assertEqual(0, f.alive.count);
|
||||
assertEqual(0, f.alive.size);
|
||||
assertEqual(0, f.dead.count);
|
||||
|
@ -721,8 +721,8 @@ function CollectionSuite () {
|
|||
assertEqual(1, f.journals.count);
|
||||
assertTrue(f.journals.fileSize > 0);
|
||||
assertEqual(0, f.compactors.count);
|
||||
assertEqual(1, f.shapefiles.count);
|
||||
assertTrue(f.shapefiles.fileSize > 0);
|
||||
assertEqual(0, f.shapefiles.count);
|
||||
assertEqual(0, f.shapefiles.fileSize);
|
||||
assertEqual(1, f.alive.count);
|
||||
assertNotEqual(0, f.alive.size);
|
||||
assertEqual(0, f.dead.count);
|
||||
|
|
Loading…
Reference in New Issue