mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Cleaning up tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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});
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user