Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sleep to unittests to ensure dbs can be deleted (#391)
Summary: Pull Request resolved: #391 Added a 100ms sleep between turning off the test server and deleting the test db. Server-related unittests sometimes fail (seen when running tests in Windows) when trying to delete the test db, likely due to the db's not fully released by the server yet. This bug is inconsistent when it appears, but so far only on Windows OS and only consistently in Github Workflows with specific combinations of dependencies and OS versions. Theoretically could happen outside of tests but it is rare to stop a server and delete the related db one after another. A more careful fix could add checks in place for this. Reviewed By: crasanders Differential Revision: D63486690 fbshipit-source-id: 665fc6b1be8da8d5c76fd6195b64c2037bc6dde7
- Loading branch information