1
0
Fork 0

added test

This commit is contained in:
jsteemann 2017-04-19 09:02:25 +02:00
parent 05ba201f3e
commit d35fc8fc6a
1 changed files with 32 additions and 0 deletions

View File

@ -262,6 +262,38 @@ function ReplicationSuite() {
}
);
},
////////////////////////////////////////////////////////////////////////////////
/// @brief test collection dropping
////////////////////////////////////////////////////////////////////////////////
testDropCollection: function() {
connectToMaster();
compare(
function(state) {
},
function(state) {
db._create(cn);
for (var i = 0; i < 100; ++i) {
db._collection(cn).save({
value: i
});
}
db._drop(cn);
internal.wal.flush(true, true);
},
function(state) {
return true;
},
function(state) {
assertNull(db._collection(cn));
}
);
},
////////////////////////////////////////////////////////////////////////////////
/// @brief test require from present