Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
⏳ Extended timeout for problematic test
Browse files Browse the repository at this point in the history
Needed to change function from arrow function as they are not
supported for mocha tests which require the use of timeout()

See: mochajs/mocha#2018
  • Loading branch information
neilbmclaughlin committed Sep 27, 2016
1 parent 1161bf5 commit c1b0d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/app.js
Expand Up @@ -146,7 +146,8 @@ describe('The results routes', () => {
const openResultsRoute = '/results-open';

describe('happy paths', () => {
it('should return the top 2 open results when the postcode is valid', (done) => {
it('should return the top 2 open results when the postcode is valid', function (done) {
this.timeout(9000); // TODO: refactor to make this unecessary
const postcodeSearchResponse = getSampleResponse('paged_pharmacies_postcode_search');
const overviewResponse = getSampleResponse('always_open');

Expand Down

0 comments on commit c1b0d13

Please sign in to comment.