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

Recording env vars can leak on new test failure #274

Open
MacMcIrish opened this issue Feb 11, 2019 · 4 comments
Open

Recording env vars can leak on new test failure #274

MacMcIrish opened this issue Feb 11, 2019 · 4 comments

Comments

@MacMcIrish
Copy link
Contributor

While recording a new test that failed, the env vars set in envVarYmlRecording were used in subsequent tests rather than the env vars in envVarYml

@simlu
Copy link
Collaborator

simlu commented Feb 11, 2019

Not sure I understand. Can you clarify? I'd say it's expected behaviour?

@MacMcIrish
Copy link
Contributor Author

MacMcIrish commented Feb 11, 2019

The env vars in envVarYmlRecording were used in tests that already have recordings after the test failure, the suite was as follows

  1. Existing recording -> used envVarYml ✔️
  2. No existing recording -> used envVarYmlRecording
  3. Existing recording -> used envVarYmlRecording ❌ (nock mismatch because wrong env vars used)

@simlu
Copy link
Collaborator

simlu commented Feb 11, 2019

That makes sense. The test fails and the cleanup isn't triggered as expected. Not sure how to best fix that...

@simlu
Copy link
Collaborator

simlu commented Apr 20, 2019

I would think this is fixed with the new test failure handling. Could you confirm please?

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

No branches or pull requests

2 participants