Skip to content

Commit 7eb15bd

Browse files
committed
unit tests
1 parent 678cf29 commit 7eb15bd

File tree

2 files changed

+301
-341
lines changed

2 files changed

+301
-341
lines changed

packages/pubsub/src/subscription.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,15 +608,15 @@ Subscription.prototype.flushQueues_ = function() {
608608
if (acks.length) {
609609
requests.push(
610610
this.acknowledge_(acks).then(function() {
611-
self.inventory_.ack.length = 0;
611+
self.inventory_.ack = [];
612612
})
613613
);
614614
}
615615

616616
if (nacks.length) {
617617
requests.push(
618618
this.modifyAckDeadline_(nacks, 0).then(function() {
619-
self.inventory_.nack.length = 0;
619+
self.inventory_.nack = [];
620620
})
621621
);
622622
}

0 commit comments

Comments
 (0)