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
test(core/txpool/legacypool): drop shared config writes from parallel tests (#2517)
TestQueueAccountLimiting and TestPendingLimiting both run with t.Parallel()
and both assigned testTxPoolConfig.AccountQueue, a package-level variable that
every other test reads while building its pool. That is a data race, and it can
also change the limits another test is asserting against.
Neither test needs the global: their pools are already constructed before the
assignment, so the value only ever served as the loop bound. Use a local
accountQueue instead. Also fix the mismatched want value in the pending count
error message, which printed AccountQueue+5 for an equality check against
AccountQueue.
0 commit comments