Fix test failures

The issue was the ArchiveModelManager change; the test local change is
just there because it makes more sense to run for every test in that
scene.
This commit is contained in:
Dean Herbert
2020-09-25 18:40:20 +09:00
parent 204024c76e
commit 8b255f4579
2 changed files with 9 additions and 7 deletions

View File

@ -427,11 +427,13 @@ namespace osu.Game.Database
{
// Dereference the existing file info, since the file model will be removed.
if (file.FileInfo != null)
{
Files.Dereference(file.FileInfo);
// This shouldn't be required, but here for safety in case the provided TModel is not being change tracked
// Definitely can be removed once we rework the database backend.
usage.Context.Set<TFileModel>().Remove(file);
// This shouldn't be required, but here for safety in case the provided TModel is not being change tracked
// Definitely can be removed once we rework the database backend.
usage.Context.Set<TFileModel>().Remove(file);
}
model.Files.Remove(file);
}