mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Fixes the flaky LibraryPathTemplate equality and TranscodingCacheCoordinator touch tests
This commit is contained in:
1 parent
ebef8f4cae
commit
d13246e6a0
2 files changed
+7
-3
No files matched your search
+3
-1
@@ -14,6 +14,7 @@ namespace Lumina.Domain.UnitTests.Core.BoundedContexts.LibraryManagementBoundedC
|
||||
public class LibraryPathTemplateTests
|
||||
{
|
||||
private readonly LibraryPathTemplateFixture _libraryPathTemplateFixture = new();
|
||||
private readonly LibraryPathPartFixture _libraryPathPartFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void Create_WhenCalledWithParts_ShouldCreateTemplateWithThoseParts()
|
||||
@@ -75,7 +76,8 @@ public class LibraryPathTemplateTests
|
||||
LibraryPathTemplate firstTemplate = _libraryPathTemplateFixture.Create();
|
||||
|
||||
// Act
|
||||
LibraryPathTemplate secondTemplate = _libraryPathTemplateFixture.Create();
|
||||
// The second template extends the first one, because two random templates can be identical (a single typed part of the same kind).
|
||||
LibraryPathTemplate secondTemplate = LibraryPathTemplate.Create([.. firstTemplate.Parts, _libraryPathPartFixture.Create()]);
|
||||
|
||||
// Assert
|
||||
Assert.NotEqual(firstTemplate, secondTemplate);
|
||||
|
||||
Reference in new issue
Block a user