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
This PR addresses a detected race condition in TestDutyExpiration tests. The issue arose from simultaneous read/write operations on the db.keysByDuty map. Instead of relying on timeouts, which proved unreliable, I switched to using a sync.WaitGroup to ensure effective coordination.
Along with the race condition fix, this PR also enhances the test suite's performance by introducing t.Parallel() at the beginning of tests to allow for parallel execution of tests within the package.
category: bug
ticket: #2546
🐞 Bug Report
Description
AggSigDB test
TestDutyExpiration
has a race condition which causes builds and PRs to fail, see. The test has been disabled.Fix the race and enable the test.
The text was updated successfully, but these errors were encountered: