Closed jonasbardino closed 1 month ago
As a side note transferfunctions
and userdb
modules are quite similar in the way they act on pickled dicts with file locking, so these unit tests for the former should be relatively easy to copy/translate into unit tests for the latter.
Manually merged through svn for inclusion in upcoming release. Review is still most welcome, especially regarding the unit tests and the potential integration of the simple inline checks in the module itself. Therefore marked with follow-up pending label.
Add proper locking on the per-user transfers dictionary to keep track of transfers for synchronized access when pickled to disk. This is mainly to rule out potential races in concurrent updates from same user - as indicated may have happened in reports from AU. Users have their own individual transfer pickle file so interference from other users should already be impossible. Extends existing inline unit tests to cover basic manipulation of the transfers file as well as some concurrency with locking. Additional work is pending to migrate or integrate existing unit tests with the new unit test framework from
make test
.UPDATE: implemented proper unit tests in the new framework.