mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-24 16:51:58 +00:00
Revert "Fixed: Disabled transactional file transfers since we don't want that feature in master yet."
This reverts commit ada5919136
.
This commit is contained in:
parent
a1bfecedcd
commit
5af12b67be
2 changed files with 0 additions and 19 deletions
|
@ -30,21 +30,6 @@ public void SetUp()
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void should_not_use_verified_transfer()
|
||||
{
|
||||
Subject.VerificationMode.Should().Be(DiskTransferVerificationMode.VerifyOnly);
|
||||
|
||||
var result = Subject.TransferFile(_sourcePath, _targetPath, TransferMode.Move);
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Verify(v => v.TryCreateHardLink(_sourcePath, _backupPath), Times.Never());
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Verify(v => v.MoveFile(_sourcePath, _targetPath, false), Times.Once());
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Ignore("Disabled verified transfer temporarily.")]
|
||||
public void should_use_verified_transfer_on_mono()
|
||||
{
|
||||
MonoOnly();
|
||||
|
@ -53,7 +38,6 @@ public void should_use_verified_transfer_on_mono()
|
|||
}
|
||||
|
||||
[Test]
|
||||
[Ignore("Disabled verified transfer temporarily.")]
|
||||
public void should_not_use_verified_transfer_on_windows()
|
||||
{
|
||||
WindowsOnly();
|
||||
|
|
|
@ -41,9 +41,6 @@ public DiskTransferService(IDiskProvider diskProvider, Logger logger)
|
|||
// TODO: Atm we haven't seen partial transfers on windows so we disable verified transfer.
|
||||
// (If enabled in the future, be sure to check specifically for ReFS, which doesn't support hardlinks.)
|
||||
VerificationMode = OsInfo.IsWindows ? DiskTransferVerificationMode.VerifyOnly : DiskTransferVerificationMode.Transactional;
|
||||
|
||||
// TODO: Disabled the transactional logic entirely coz we have a couple of potential issues which we don't want in master.
|
||||
VerificationMode = DiskTransferVerificationMode.VerifyOnly;
|
||||
}
|
||||
|
||||
public TransferMode TransferFolder(String sourcePath, String targetPath, TransferMode mode, bool verified = true)
|
||||
|
|
Loading…
Reference in a new issue