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

test(snapshot): use Deno.makeTempDir instead of custom tmp directory #2129

Closed
kt3k opened this issue Apr 20, 2022 · 6 comments · Fixed by #2179
Closed

test(snapshot): use Deno.makeTempDir instead of custom tmp directory #2129

kt3k opened this issue Apr 20, 2022 · 6 comments · Fixed by #2179

Comments

@kt3k
Copy link
Member

kt3k commented Apr 20, 2022

ref #2039

and also let's remove tmp directory at assertion failures.

@bcheidemann
Copy link
Contributor

@kt3k I think we can sidestep this issue.

Currently spawning new instances of deno test adds 5+ seconds which is not ideal.

If we implement something similar to my suggestion in #2135 I think we can test the behaviour of updating and asserting a mismatched snapshot without needing to spawn new instances of deno test.

What do you think?

@bartlomieju
Copy link
Member

FYI I'm still unable to run all tests locally, the "update" test is failing. We should fix this situation ASAP.

@bcheidemann
Copy link
Contributor

FYI I'm still unable to run all tests locally, the "update" test is failing. We should fix this situation ASAP.

That's not ideal 🤔

The update test will basically be completely re-written as part of #2135 so hopefully this should fix it.

By the way, this test passes locally for me but the http/file_server_test.ts fails on file_server file responses includes correct etag:

-   5810a8f4
+   W/5810a8f4

@kt3k
Copy link
Member Author

kt3k commented Apr 23, 2022

@bartlomieju

FYI I'm still unable to run all tests locally

What error do you see?

@bcheidemann

By the way, this test passes locally for me but the http/file_server_test.ts fails on file_server file responses includes correct etag:

That should be fixed by upgrading to canary version: deno upgrade --canary

@bartlomieju
Copy link
Member

@bartlomieju

FYI I'm still unable to run all tests locally

What error do you see?

Scratch that, it no longer happens after upgrading to latest stable release. I guess I had hit some flake.

@bcheidemann
Copy link
Contributor

@bartlomieju @kt3k This is fixed in #2179 👍

@kt3k kt3k closed this as completed in #2179 May 6, 2022
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

Successfully merging a pull request may close this issue.

3 participants