Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cassette doesn't exist, but library reports the request is not found #32

Open
eimantas opened this issue Nov 18, 2015 · 3 comments
Open

Comments

@eimantas
Copy link

I intentionally changed the cassette name when initialising a session, however the test fails with fatalError() call from DVR stating that the request was not found. I am certain the json file is not there and have performed the clean build/test and even removal of DerivedData folder.

@soffes
Copy link
Contributor

soffes commented Nov 18, 2015

You might have an old version. We don't call fatalError any more. You might also check the copy resource phase of your test target.

@eimantas
Copy link
Author

I did and it's not there. I can still reproduce the issue with 0.1.4 release.

@eimantas
Copy link
Author

FWIW - the code now stops at this abort() call:

// Cassette is missing. Record.
if session.recordingEnabled == false {
    print("[DVR] Recording is disabled.")
    abort()
}

I see the documentation is a bit outdated as there is no more beginRecording() and endRecording() methods. Only recordingEnabled property. But even setting this property to true after initialising a session the test crahes on the aforementioned line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants