tests: fix tests on Go 1.23 (#3697)

* Adjust rtype.go script to handle constants moved to internal/abi from
  runtime
* Remove tests in service/dap/server_test that relied on knowledge of
  the internal layout of channels.
This commit is contained in:
Alessandro Arzilli
2024-04-11 18:40:57 +02:00
committed by GitHub
parent d7f104bf9c
commit 2e88b7ead3
5 changed files with 25 additions and 16 deletions

View File

@ -1848,9 +1848,7 @@ func TestScopesAndVariablesRequests2(t *testing.T) {
if ref > 0 {
client.VariablesRequest(ref)
ch1 := client.ExpectVariablesResponse(t)
checkChildren(t, ch1, "ch1", 11)
checkVarExact(t, ch1, 0, "qcount", "ch1.qcount", "4 = 0x4", "uint", noChildren)
checkVarRegex(t, ch1, 10, "lock", "ch1.lock", `runtime\.mutex {.*key: 0.*}`, `runtime\.mutex`, hasChildren)
validateEvaluateName(t, client, ch1, 0)
validateEvaluateName(t, client, ch1, 10)
}