Skip to content

Commit

Permalink
remove timeouts now specs are faster due to local elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Impey committed Oct 5, 2015
1 parent 7c8f0ac commit 5de8d2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ dependencies:

test:
override:
- docker-compose run api bash -c grunt ci
- docker-compose run api grunt ci
4 changes: 1 addition & 3 deletions spec/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const specRequest = require('./spec_request');
const elasticsearchClient = require('../lib/elasticsearchClient');
const generateOpsIndexName = require('../lib/analytics_logger').generateIndexName;

describe('analytics', function () {
this.timeout(3000);

describe('analytics', () => {
const testIndexName = `test_index_${cuid()}`;

before(() => {
Expand Down
4 changes: 1 addition & 3 deletions spec/indexes_{name}.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const specRequest = require('./spec_request');

const expect = require('chai').expect;

describe('/indexes/{name}', function () {
this.timeout(5000);

describe('/indexes/{name}', () => {
const testIndexName = `test_index_${cuid()}`;
const testObject = {name: 'object', field: 'value'};
let createResponse;
Expand Down
4 changes: 1 addition & 3 deletions spec/indexes_{name}_batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const elasticsearchClient = require('../lib/elasticsearchClient');

const expect = require('chai').expect;

describe('/indexes/{name}/batch', function () {
this.timeout(5000);

describe('/indexes/{name}/batch', () => {
let testIndexName;

describe('post', () => {
Expand Down
4 changes: 1 addition & 3 deletions spec/indexes_{name}_{objectID}.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const specRequest = require('./spec_request');

const expect = require('chai').expect;

describe('/indexes/{name}/{objectID}', function () {
this.timeout(5000);

describe('/indexes/{name}/{objectID}', () => {
const testIndexName = `test_index_${cuid()}`;
const testObject = {name: 'an object', field1: 'some value', field2: false};
let indexedObject;
Expand Down

0 comments on commit 5de8d2f

Please sign in to comment.