Fix test race conditions and SQLite database locking#98
Conversation
|
🤖 Claude Code Review Status: Complete This PR addresses race conditions in tests with good synchronization improvements. The changes correctly isolate SQLite databases per test and add proper locking for concurrent access to the Difficulty cache. Potential Issue: QuorumPath may not respect test-specific data directory - The DataFolder override happens at daemon/test_daemon.go:287, but QuorumPath is read at line 297 from existing settings. If QuorumPath is configured as an absolute path, it won't use the test-specific directory and could cause conflicts between parallel tests sharing the same quorum directory. Consider also overriding appSettings.SubtreeValidation.QuorumPath to filepath.Join(path, "quorum") when in test context. What Works Well: ✅ Difficulty.go mutex implementation is correct with proper RLock/RUnlock early return pattern |
|


No description provided.