mirror of https://github.com/docker/docs.git
Removing unnecessary timeout in integration tests
This commit is contained in:
parent
b65d8e1552
commit
d45b249f74
|
|
@ -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);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue