| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Please adapt the commit message to follow the guideline - it's too long for a headline. |
Sorry, something went wrong.
The last als.run() will reactivate the als, hence the test should test for getting the object, not undefined
|
@Flarna I've updated the commit message. |
Sorry, something went wrong.
Sorry, something went wrong.
The last als.run() will reactivate the als, hence the test should test for getting the object, not undefined PR-URL: #38008 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
The last als.run() will reactivate the als, hence the test should test for getting the object, not undefined PR-URL: #38008 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
The last als.run() will reactivate the als, hence the test should test for getting the object, not undefined PR-URL: #38008 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
The last als.run() will reactivate the als, hence the test should test for getting the object, not undefined
Based on the Nodejs documentation
The original test is doing
The asyncLocalStorage.getStore() will return a Map, however, the test will pass as it is not strict.
As this is within a run(), we should test for asyncLocalStorage to return the store instead.
This will demonstrate a clearer purpose of the test.