mirror of https://gitee.com/bigwinds/arangodb
Fixed a graph unit test. It assumed a specific ordering which is not guaranteed
This commit is contained in:
parent
876853dd9f
commit
e909c79794
|
@ -2666,9 +2666,13 @@ function GeneralGraphCommonNeighborsSuite() {
|
|||
testCommonPropertiesWithFilters: function () {
|
||||
actual = testGraph._commonProperties({ageing : true} , {harald : 'meier'}, {});
|
||||
assertEqual(actual[0][v5][0]._id , v6);
|
||||
assertEqual(actual[1][v6][0]._id , v4);
|
||||
assertEqual(actual[1][v6][1]._id , v8);
|
||||
assertEqual(actual[1][v6][2]._id , v7);
|
||||
var proV6 = actual[1][v6];
|
||||
proV6.sort(function(a, b) {
|
||||
return a._id < b._id;
|
||||
});
|
||||
assertEqual(proV6[0], v4);
|
||||
assertEqual(proV6[1], v7);
|
||||
assertEqual(proV6[2], v8);
|
||||
|
||||
actual = testGraph._countCommonProperties({ageing : true} , {harald : 'meier'}, {});
|
||||
assertEqual(actual, [
|
||||
|
|
Loading…
Reference in New Issue