Cleaning up tests

This commit is contained in:
Filipe Névola
2022-01-04 15:42:30 -04:00
parent 8c3a6cdd6c
commit ff7262a49d
3 changed files with 2 additions and 11 deletions

View File

@@ -644,8 +644,6 @@ MongoConnection.prototype._update = function (collection_name, selector, mod,
};
var transformResult = function (driverResult) {
console.log(`driverResult`, driverResult);
var meteorResult = { numberAffected: 0 };
if (driverResult) {
var mongoResult = driverResult.result;

View File

@@ -357,8 +357,6 @@ Tinytest.addAsync("mongo-livedata - basics, " + idGeneration, function (test, on
expectObserve('', function () {
var count = coll.update({run: run, x: -1}, {$inc: {x: 2}}, {multi: true});
console.log(`count`, count);
test.equal(count, 0);
});
@@ -768,16 +766,11 @@ if (Meteor.isServer) {
test.isTrue(observeMultiplexer);
test.isTrue(observeMultiplexer === o2.handle._multiplexer);
console.log('runInFence filipe')
console.log(`o1.output`, o1.output);
// Update. Both observes fire.
runInFence(function () {
coll.update(docId1, {$set: {x: 'y'}});
});
console.log('runInFence filipe 2')
console.log(`o1.output `, o1.output);
test.length(o1.output, 1, 'filipe');
test.length(o1.output, 1, 'test that is breaking');
test.length(o2.output, 1);
test.equal(o1.output.shift(), {changed: docId1});
test.equal(o2.output.shift(), {changed: docId1});

View File

@@ -57,7 +57,7 @@ _.each ([{added: 'added', forceOrdered: true},
});
});
Tinytest.onlyAsync("observeChanges - callback isolation", function (test, onComplete) {
Tinytest.addAsync("observeChanges - callback isolation", function (test, onComplete) {
var c = makeCollection();
withCallbackLogger(test, ["added", "changed", "removed"], Meteor.isServer, function (logger) {
var handles = [];