Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix flaky test: close account before marking thread-upgrade as finished
store/threads_test.go opens an account, starts the threading upgrade, waits for it to finish, runs some tests, and closes the account at the end, verifying all references are gone. the "thread upgrade" goroutine has its own account reference. it closes its account after having signaled completion of the upgrade. in between that time, all checks from the tests could run, its account closed and its no-more-account-references check would fail. the fix is hopefully to mark the thread upgrade process finished after closing the account. hard to verify, but this only happens very rarely.
- Loading branch information