test: make prerequisite lanes fail honestly
This commit is contained in:
parent
dfc841b779
commit
6faeb4a103
113 changed files with 424 additions and 336 deletions
|
|
@ -8,7 +8,6 @@ using AcDream.Core.World;
|
|||
using DatReaderWriter;
|
||||
using DatReaderWriter.DBObjs;
|
||||
using DatReaderWriter.Types;
|
||||
using Xunit.Sdk;
|
||||
|
||||
namespace AcDream.App.Tests.Streaming;
|
||||
|
||||
|
|
@ -348,7 +347,8 @@ public sealed class LandblockBuildFactoryTests
|
|||
{
|
||||
string? datDirectory = ResolveDatDirectory();
|
||||
if (datDirectory is null)
|
||||
throw SkipException.ForSkip("Installed retail DATs are required.");
|
||||
throw new InvalidOperationException(
|
||||
"Lane=PreparedPackage requires installed retail DATs; see docs/release-gate.md.");
|
||||
|
||||
using var dat = new BoundedTestDatCollection(datDirectory);
|
||||
var bounded = (IDatReaderWriter)dat;
|
||||
|
|
@ -358,7 +358,8 @@ public sealed class LandblockBuildFactoryTests
|
|||
Assert.True(heights.Length >= 256);
|
||||
string? pakPath = ResolvePreparedPackagePath(datDirectory);
|
||||
if (pakPath is null)
|
||||
throw SkipException.ForSkip("Installed acdream.pak is required.");
|
||||
throw new InvalidOperationException(
|
||||
"Lane=PreparedPackage requires a validated acdream.pak; see docs/release-gate.md.");
|
||||
using var prepared = new PakPreparedAssetSource(pakPath, bounded);
|
||||
var factory = new LandblockBuildFactory(
|
||||
bounded,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue