cloudant / python-cloudant

A Python library for Cloudant and CouchDB
Apache License 2.0
163 stars 55 forks source link

Intermittent read timeout #460

Closed ricellis closed 4 years ago

ricellis commented 4 years ago

Checklist

Description

Adjust read timeout in intermittently failing test and update test matrices.

1. Steps to reproduce and the simplest code sample possible to demonstrate the issue

Run tests.unit.replicator_tests.ReplicatorTests.test_timeout_in_create_replication

2. What you expected to happen

Test to pass.

3. What actually happened

It intermittently fails.

Approach

Change the timeout from .5 to (30,5) - this means the connect timeout stays at the default 30s instead of also being reduced to .5s and the read timeout is increased from .5 seconds to 5 s. Whilst this means the test takes longer to run, it is much more reliable.

Schema & API Changes

Security and Privacy

Testing

Monitoring and Logging