Removing unnecessary timeout in integration tests

This commit is contained in:
Jeffrey Morgan 2015-06-18 18:00:29 -07:00
parent b65d8e1552
commit d45b249f74
1 changed files with 7 additions and 9 deletions

View File

@ -9,7 +9,6 @@ describe('HubUtil Integration Tests', () => {
describe('auth', () => { describe('auth', () => {
pit('successfully authenticates', () => { pit('successfully authenticates', () => {
return new Promise((resolve) => { return new Promise((resolve) => {
setTimeout(() => {
hubUtil.auth(process.env.INTEGRATION_USER, process.env.INTEGRATION_PASSWORD, (error, response, body) => { hubUtil.auth(process.env.INTEGRATION_USER, process.env.INTEGRATION_PASSWORD, (error, response, body) => {
expect(response.statusCode).toBe(200); expect(response.statusCode).toBe(200);
expect(error).toBe(null); expect(error).toBe(null);
@ -18,7 +17,6 @@ describe('HubUtil Integration Tests', () => {
expect(data.token).toBeTruthy(); expect(data.token).toBeTruthy();
resolve(); resolve();
}); });
}, 5000);
}); });
}); });