Skip to content

Commit

Permalink
[debugger][mono] Fix failing test CheckVSCodeTestFunction1 (dotnet#…
Browse files Browse the repository at this point in the history
…95955)

* Adjust tests to the new protocol.

* Feedback
  • Loading branch information
ilonatommy committed Dec 13, 2023
1 parent 1e135d1 commit 1d4897d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,16 @@ async Task CheckCFOResult(Result result)
return;

if (res_array_len < 0)
{
await CheckValue(result.Value["result"], TObject("Object"), $"cfo-res");
}
else
await CheckValue(result.Value["result"], TArray("Array", $"Array({res_array_len})"), $"cfo-res");
{
// "result" value is purely JS and might diverge from debuggerProxy's messages on each devtool protocol change
var jsArray = JObject.FromObject(new { type = "object", className = "Array", description = $"Array({res_array_len})" });
await CheckValue(result.Value["result"], jsArray, $"cfo-res");
}
}
}
}

}

0 comments on commit 1d4897d

Please sign in to comment.