Page MenuHomeSoftware Heritage

test_storage: Use the db_transaction context manager instead of raw connections
ClosedPublic

Authored by olasd on Oct 2 2019, 5:25 PM.

Details

Summary

This minimizes the risk of dangling db connections, which in turn reduces the
chance of cascading test failures.

Depends on D2067

Test Plan

tox runs without issue

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.