sync_state_dump
test holds a lock across an await point
#9650
Labels
A-testing
Area: Unit testing / integration testing
C-housekeeping
Category: Refactoring, cleanups, code quality
nearcore/integration-tests/src/tests/client/sync_state_nodes.rs
Lines 518 to 519 in 3fc242f
In this test
grabs a write lock, and then the test proceeds to immediately await afterwards. In Rust locks should not be held across await points as that’s a recipe for a deadlock if any other tasks need this same lock to make progress.
The text was updated successfully, but these errors were encountered: