Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Dashboard.Tests/RemediationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,6 @@ private sealed class FakeExecutor : IRemediationExecutor
public bool AuditWriteResult = true;
public Func<string, long, long, TargetPreflight>? PreflightFunc;
public Func<string, long, long, ForcePlanOutcome>? ForceFunc;
public Func<string, long, long, ForcePlanOutcome>? UnforceFunc;

public int ForceCalls;
public int UnforceCalls;
Expand Down Expand Up @@ -1974,7 +1973,7 @@ public Task<ForcePlanOutcome> ForcePlanAsync(string database, long queryId, long
public Task<ForcePlanOutcome> UnforcePlanAsync(string database, long queryId, long planId, RemediationIdentity identity, CancellationToken ct)
{
UnforceCalls++;
return Task.FromResult(UnforceFunc?.Invoke(database, queryId, planId) ?? new ForcePlanOutcome
return Task.FromResult(new ForcePlanOutcome
{
Database = database, QueryId = queryId, PlanId = planId,
Status = RemediationStatus.Success, Forced = true, ExecutingLogin = "sa", GateSpid = 55, ExecSpid = 55
Expand Down
Loading