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

Testing with session #43

Open
swr1bm86 opened this issue Nov 20, 2016 · 3 comments
Open

Testing with session #43

swr1bm86 opened this issue Nov 20, 2016 · 3 comments

Comments

@swr1bm86
Copy link

swr1bm86 commented Nov 20, 2016

Hi @sol, When I try to test an API actually needs the session, it will fail since the mock server can not reach the in-memory session. For instance, when testing with this test case, it will produce the error message:

image

Which is defined here, and it proves that the mock app can not reach out to the session when testing it, but it works fine when I start the server and test the API by hand.

Any ideas to fix this? Thanks in advance!

@sol
Copy link
Member

sol commented Nov 21, 2016

Where is the session stored? Cookies?

@swr1bm86
Copy link
Author

@sol yes, exactly.

@swr1bm86
Copy link
Author

swr1bm86 commented Nov 22, 2016

Hi @sol, I can solve this by pass around the cookie explicitly like this.

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