Conversation
Modifications to support using this in Shopify
Add `#read` to the recordable methods
|
Thanks for all the work on this, @peterjm. Quick question- have you verified that it plays back without opening real connections? I ran tcpdump while running the specs and I see traffic when its supposed to be playing back from cassette. Is there a better way to test your changes? |
|
Interesting -- I hadn't used tcpdump; I'll take a look to see where the connection is coming from. Hopefully it's just an extra method that needs to be stubbed on the socket classes. |
|
Also, I'd love to get this merged upstream, but there's a few caveats that I was going to address before sending a PR:
|
|
Yeah, tcpdump is playing hard to get. You need to add I agree we should look for a deeper hook to watch for live traffic. I'll do some digging. As far as your caveats:
|
|
Don't prepend OpenSSL::SSL::SSLSocket
Cut shopify-tcr gem
|
Any chance this will get picked up again? |
|
The main issue was that the changes broke the network isolation somewhere along the way and it was sending traffic instead of stubbing it. |




No description provided.