All unit test pass for reals?

This commit is contained in:
Tig
2024-10-06 18:24:20 -06:00
parent 39bf84472d
commit c4e8ec4a56
4 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
#nullable enable
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
@@ -80,6 +81,16 @@ public static partial class Application // Initialization (Init/Shutdown)
if (driver is { })
{
Driver = driver;
if (driver is FakeDriver)
{
// We're running unit tests. Disable loading config files other than default
if (Locations == ConfigLocations.All)
{
Locations = ConfigLocations.DefaultOnly;
Reset ();
}
}
}
// Start the process of configuration management.