flickr / yakbak

Record and playback HTTP responses
MIT License
1.06k stars 84 forks source link

yakbak sometimes does not record tapes #44

Closed MikeTaylor closed 6 years ago

MikeTaylor commented 6 years ago

I sometimes -- often, in fact -- find that when I run tests with no tapes in place, the tests work correctly (falling through to the underlying HTTP service) but no tapes get written. I have no idea what causes this. There are no diagnostics of any kind, just a silent failure -- or, worse, I might characterise it as a silent success, but one that doesn't give me the side-effect that I need.

I realise this is a hopelessly underspecified bug report: it's more of a cry for help, really. I'm posting it in the hope that someone else has had this experience, recognises what I am describing, and can put me on the right path.

MikeTaylor commented 6 years ago

Investigating this further (basically by adding console.log statements to my copy of yakbak) it seems that, although the top-level exported function in index.js is getting called, the function returned from that never is.

Which I admit suggests that the error is in my application, not in yakbak.

Further bulletins as events warrant.

MikeTaylor commented 6 years ago

It turns out that my tests run "successfully" even if I don't start the yakbak server at all. It's being completely bypassed.

Therefore, my problem has absolutely nothing to do with yakbak, and this report was filed in error. I will close it.