-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Fix tests for isAuth.spec.ts
and src/server.ts
#1010
Comments
tests/middleware/isAuth.spec.ts
tests/middleware/isAuth.spec.ts
and src/server.ts
tests/middleware/isAuth.spec.ts
and src/server.ts
isAuth.spec.ts
and src/server.ts
You already have 2 issues assigned. Please wait until your other issues are closed via a PR merge |
Hey, can I work on this issue? |
Please look at duplicate issue #1025 for any further details |
@palisadoes, yes I will take a look. Thank you so much |
Hey if no one is working on this then I would love to work on this please tell from where should I begin. |
@ayushbhaimehta This issue was assigned just yesterday. Please take a look at other unassigned issues or consider creating one using these guidelines PalisadoesFoundation/talawa#359 |
@palisadoes If I am not wrong was this not fixed by -> 93e01bd this commit of this PR ? I was getting the same error on that PR and it was because of Is the error still there? |
|
After this and #1007 were merged I am curious whether the error was thrown in some other PR also (if yes could you pls link the action run), or locally instances or both , we need to know for sure to see what is the exact problem here. @xoldyckk DO you have any input here as well? |
An example of the failed action is linked in the issue's comment |
@palisadoes Yeah I know, I was the author of that PR, and what I am saying is that in the commit after the failed test ie. the ENONET error was thrown here you told me to look into it, ->#998 (comment) , and I did after the ENONET error was cleared I was sure I had fixed it so in the end all the tests had passed. Here is the original PR -> #998 as you can see the tests are passed That's why I was asking for instances of the tests throwing this error after that PR was merged. |
I'll close this and if it returns I'll reopen it |
@palisadoes sounds good to me. @KrutikaBhatt Sorry about this one, I hope you did not beat yourself up over this issue. You can look for other issues to get assigned and contribute to. |
@kb-0311 It's happened again. This needs to be resolved please see this run: |
@palisadoes The reason it failed here is that Source - vitest-dev/vitest#1692 (comment) In that test run, there were other tests that were failing and hence the file handling error was thrown. I am gonna ask in this thread about the best possible approach to tackle this. I wonder if we can wrap the entire test suite in try-catch for this |
Ok nevermind, got a possible fix in the comment itself, but I needed to add an extra parameter in the vite. config.ts file and another file for this to work |
@kb-0311 tasksByEvent test probably failed because you changed the logic for getSort function and it no longer returns a sort object expected by tests when For example previously You have to remove all the test blocks that rely on this logic like this one:-
|
@xoldyckk Oh yeah, that is one test suite I missed while removing that orderBy=== undefined test. Which will be fixed in that same PR. Thanks for bringing that up. I think the main problem was that even though a separate test suite failed the unhandled error was thrown for the image file generated in vitest for |
Describe the bug
We have been getting periodic errors where our GitHub action testing fails. Re-running the tests often causes the error to go away.
Other
To Reproduce
tests/middleware/isAuth.spec.ts
will occasionally fail.Expected behavior
Tests pass reliably and consitently
Actual behavior
See above
Screenshots
Additional details
N/A
The text was updated successfully, but these errors were encountered: