Skip to content

Commit

Permalink
add better handling on message expire
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Mar 14, 2019
1 parent 3b69523 commit 7d4636f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as sinon from 'sinon';
import * as chai from 'chai';
import {ISquissOptions} from '../../src';
import {SQS} from 'aws-sdk';
import {EventEmitter} from "events";
import {EventEmitter} from 'events';

const should = chai.should();
let inst: Squiss | null = null;
Expand Down Expand Up @@ -335,7 +335,7 @@ describe('index', () => {
result.should.eq(true);
});
});
it('should not double resolve if queue drained after timeout', function () {
it('should not double resolve if queue drained after timeout', function() {
this.timeout(5000);
const spy = sinon.spy();
inst = new Squiss({queueUrl: 'foo'} as ISquissOptions);
Expand Down Expand Up @@ -594,7 +594,7 @@ describe('index', () => {
abort: () => Promise.reject(new Error('test')),
};
};
inst!.on('error', spy)
inst!.on('error', spy);
const msg = new EventEmitter() as any;
msg.raw = {
MessageId: 'foo',
Expand Down

0 comments on commit 7d4636f

Please sign in to comment.