Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2023-09-20 19:35:01 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2023-10-09 12:34:00 +0300
commit4bfab1aa390de0580333326cd83e7d7a887de77e (patch)
tree4c8851b072d0f81f5fa9dbf8ccebf21e76df4a27
parent3260297a48dab6a5776503a2734baddcd0904706 (diff)
Write quarantined objects into transaction's target repository
TransactionManager's tests are writing quarantined objects always into the same repository. This is fine so far as the TransactionManager still works on just a single repository. The transaction now contains the target repository's relative path. To prepare for operating and testing on multiple repositories, change the tests to write the quarantined objects into the transaction's target repository.
-rw-r--r--internal/gitaly/storage/storagemgr/transaction_manager_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/gitaly/storage/storagemgr/transaction_manager_test.go b/internal/gitaly/storage/storagemgr/transaction_manager_test.go
index 29462f57f..8fd0d7ef5 100644
--- a/internal/gitaly/storage/storagemgr/transaction_manager_test.go
+++ b/internal/gitaly/storage/storagemgr/transaction_manager_test.go
@@ -4306,7 +4306,10 @@ func TestTransactionManager(t *testing.T) {
}
rewrittenRepo := setup.RepositoryFactory.Build(
- transaction.RewriteRepository(repo.Repository.(*gitalypb.Repository)),
+ transaction.RewriteRepository(&gitalypb.Repository{
+ StorageName: setup.Config.Storages[0].Name,
+ RelativePath: transaction.relativePath,
+ }),
)
for _, pack := range step.QuarantinedPacks {