myronmarston/vcr — Issue #123: re_record_interval is silently ignored if test for internet connection fails
Author: leoshaw
Created: 2012-01-09 11:29:23+00:00
State: open

v1.11.3

When deciding whether to re-record responses, vcr uses InternetConnection.available to check whether an internet connection is available. If this fails, the response isn't re-recorded - but it isn't obvious why. In my case, the internet connection is available but it takes longer than the 1s timeout to get a response from example.com on port 80. Maybe it isn't possible to set a timeout that would suit everyone, but might be worth including a warning that this is the cause for not trying to re-record the response. Maybe also worth using the real API endpoint as a test, rather than example.com?