mirror of
https://github.com/Readarr/Readarr
synced 2025-12-25 09:47:14 +01:00
Fixed: Edge case where import fails due to DB relationship mismatch
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
parent
d4383d4180
commit
ff40d82ef1
1 changed files with 13 additions and 0 deletions
|
|
@ -91,5 +91,18 @@ public void should_be_reject_if_file_size_is_the_same()
|
|||
|
||||
Subject.IsSatisfiedBy(_localTrack, null).Accepted.Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_be_accepted_if_file_cannot_be_fetched()
|
||||
{
|
||||
_localTrack.Tracks = Builder<Track>.CreateListOfSize(1)
|
||||
.TheFirst(1)
|
||||
.With(e => e.TrackFileId = 1)
|
||||
.With(e => e.TrackFile = new LazyLoaded<TrackFile>((TrackFile)null))
|
||||
.Build()
|
||||
.ToList();
|
||||
|
||||
Subject.IsSatisfiedBy(_localTrack, null).Accepted.Should().BeTrue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue