Skip to content
Snippets Groups Projects
Commit 21198434 authored by Sami Hiltunen's avatar Sami Hiltunen
Browse files

Use localrepo.UnpackObjects for writing to quarantine

The TransactionManager tests are currently testing the quarantining
logic by writing pack files in to the quarantine directory of the
Transaction. Doing so they manually resolve the quarantine directory
path from the *gitalypb.Repository. Write the objects into the
quarantine by unpacking them using localrepo.UnpackObjects. This better
tests that the repository is correctly wired up with a quarantine in
a manner our git helpers handle them.

In the tests, the objects were previously in the quarantine as packs.
Now they are unpacked into the quarantine. This makes no difference
when it comes to external behavior though.
parent 8b8d0593
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment