Skip to content

Commit 5999ae6

Browse files
committed
Increase timeout for integration tests
2 seconds is a bit too short for tests which depend on an external API. On CI systems, tests can be slow and connection latency highly variable. Try 6 seconds to start. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
1 parent 33404ec commit 5999ae6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/integration.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ const swaggerYamlPath
2828
const invalidYamlPath
2929
= path.join(__dirname, '..', 'test-data', 'petstore-invalid.yaml');
3030

31-
describe('swagger-spec-validator', () => {
31+
describe('swagger-spec-validator', function() {
32+
// Since these tests rely on external API responses, latency can vary a lot.
33+
// Increase timeout to something more reasonable for external APIs.
34+
this.timeout(6000);
35+
3236
it('validates JSON and YAML files', (done) => {
3337
const options = {
3438
in: new stream.PassThrough(),

0 commit comments

Comments
 (0)