Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed May 4, 2024
1 parent c00de0d commit 2ceb6cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export function calculateWaitedOnTime (messageQueue, startedTime) {
messageQueue.toArray().forEach(function (msg) {
if (msg._waitEventId) {
waitedOnTime += now - msg._waitEventId.at;
if(msg._waitEventId.at < startedTime) {
waitedOnTime -= startedTime - msg._waitEventId.at
if (msg._waitEventId.at < startedTime) {
waitedOnTime -= startedTime - msg._waitEventId.at;
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion tests/models/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Tinytest.addAsync('Models - Method - Waited On - track waitedOn without wait tim
console.log('slow method end');
});
let unblockedMethod = RegisterMethod(function () {
this.unblock()
this.unblock();
Meteor._sleepForMs(100);
console.log('slow method end');
});
Expand Down
2 changes: 1 addition & 1 deletion tests/models/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ Tinytest.addAsync('Models - PubSub - Waited On - track wait time of queued messa
});

Meteor.publish('tinytest-unblock-fast', function () {
console.log('unblock-fast-pub')
console.log('unblock-fast-pub');
this.unblock();
Meteor._sleepForMs(100);
this.ready();
Expand Down

0 comments on commit 2ceb6cd

Please sign in to comment.