You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently cloned the HTMX repo and ran the npm run test command
To my surprise without making any changes it failed for 3 tests, I am new to htmx and might be missing something but in a layman's point of view all tests should pass in the most ideal sense or the test should be modified
I am attaching the screenshot of the failed tests,
The text was updated successfully, but these errors were encountered:
I have a similar issue when running test , although I just have 2 failed test cases. Below is the screenshot.
It seems that issue comes from security.js file from test\core and www\static\test\core with the error being exceeding Timeout of 4000ms.
In this part of code
I tried increasing timeout to 12000 this.timeout(12000)
and surprisingly the failed case didn't show up anymore.
Hey, indeed those tests make requests to external URLs and it's unfortunately common to have timeout issues with those...
As it's going to depend on your internet connection for that request, that's probably why increasing the timeout worked for you here.
We need these tests to ensure selfRequestsOnly works as expected, so if you have any idea how to solve that timeout problem (without simply increasing the timeout value in this case), PRs are welcome!
I recently cloned the HTMX repo and ran the
![image](https://private-user-images.githubusercontent.com/16884060/341226528-93e07577-6911-47ee-bbac-e8da2bba3e04.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExODE3OTAsIm5iZiI6MTcyMTE4MTQ5MCwicGF0aCI6Ii8xNjg4NDA2MC8zNDEyMjY1MjgtOTNlMDc1NzctNjkxMS00N2VlLWJiYWMtZThkYTJiYmEzZTA0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDAxNTgxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0OTUwZDVlMTQ4ZGExYTk3M2FmZTQ0NzI1YjU2YmNmZmIxYjRlZGIzNGQyN2Y1MjI1NDhlN2YyMmVlYWJiYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9o-CqyMQveNGrA4zBHF5djppTBoHfLhYMcD7OozrW7w)
npm run test
commandTo my surprise without making any changes it failed for 3 tests, I am new to htmx and might be missing something but in a layman's point of view all tests should pass in the most ideal sense or the test should be modified
I am attaching the screenshot of the failed tests,
The text was updated successfully, but these errors were encountered: