Skip to content

Commit d0accde

Browse files
tests
1 parent db52b9a commit d0accde

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/pubsub/test/subscription.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,19 @@ describe('Subscription', function() {
410410
subscription.ack(IDS, assert.ifError);
411411
});
412412

413+
it('should honor the timeout setting', function(done) {
414+
var options = {
415+
timeout: 10
416+
};
417+
418+
subscription.request = function(protoOpts) {
419+
assert.strictEqual(protoOpts.timeout, options.timeout);
420+
done();
421+
};
422+
423+
subscription.ack('abc', options, assert.ifError);
424+
});
425+
413426
it('should unmark the ack ids as being in progress', function(done) {
414427
subscription.request = function(protoOpts, reqOpts, callback) {
415428
callback();

0 commit comments

Comments
 (0)