mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-25 13:10:13 +00:00
chore(agent-v2-tests): silence xUnit1012 by marking errorCode nullable
Codex review hygiene: the new `AppStateChange_Error_promoted_carries_failureType_and_errorCode` Theory passes null via [InlineData(EspAppsTimeout, null)] for the no-HRESULT fallback case, but declared the parameter as non-nullable `string` (the test project has <Nullable>enable</Nullable>). Switch to `string?` to match the value flow and silence the xUnit1012 analyzer warning. Behaviour unchanged — the test still asserts that the no-HRESULT branch omits the DataJson.errorCode key entirely. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -352,7 +352,7 @@ namespace AutopilotMonitor.Agent.V2.Core.Tests.SignalAdapters
|
||||
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsTimeout, null)]
|
||||
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsDetectionFailure, "0x87d1041c")]
|
||||
[InlineData(AutopilotMonitor.Shared.Constants.AppFailureTypes.EspAppsInstallFailure, "0x80070643")]
|
||||
public void AppStateChange_Error_promoted_carries_failureType_and_errorCode(string failureType, string errorCode)
|
||||
public void AppStateChange_Error_promoted_carries_failureType_and_errorCode(string failureType, string? errorCode)
|
||||
{
|
||||
// Codex review follow-up (P1) — when the V2 EnrollmentTerminationHandler
|
||||
// promotes an app from Installing -> Error via
|
||||
|
||||
Reference in New Issue
Block a user