From 41231533b10e019497dc4438b7d61736f680e2ad Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:36:28 +0800 Subject: [PATCH] Fix test --- v2rayN/ServiceLib.Tests/CoreConfig/CoreConfigTestFactory.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v2rayN/ServiceLib.Tests/CoreConfig/CoreConfigTestFactory.cs b/v2rayN/ServiceLib.Tests/CoreConfig/CoreConfigTestFactory.cs index 5c9e389f..44401730 100644 --- a/v2rayN/ServiceLib.Tests/CoreConfig/CoreConfigTestFactory.cs +++ b/v2rayN/ServiceLib.Tests/CoreConfig/CoreConfigTestFactory.cs @@ -6,6 +6,9 @@ internal static class CoreConfigTestFactory { var field = typeof(AppManager).GetField("_config", BindingFlags.Instance | BindingFlags.NonPublic); field?.SetValue(AppManager.Instance, config); + + var field2 = typeof(ConfigState).GetField("_current", BindingFlags.Instance | BindingFlags.NonPublic); + field2?.SetValue(ConfigState.Instance, config); } public static Config CreateConfig(ECoreType vmessCoreType = ECoreType.Xray)