未验证 提交 3fd78fc4 编写于 作者: P polinasok 提交者: GitHub

Relax flaky check in TestScopesAndVariables on windows/go1.15 (#2215)

Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
上级 775c923e
......@@ -573,9 +573,9 @@ func TestScopesAndVariablesRequests(t *testing.T) {
startLineno := 62
if runtime.GOOS == "windows" && goversion.VersionAfterOrEqual(runtime.Version(), 1, 15) {
// Go1.15 on windows inserts a NOP after the call to
// runtime.Breakpoint and marks it as line 61 (same as the
// runtime.Breakpoint call).
startLineno = 61
// runtime.Breakpoint and marks it same line as the
// runtime.Breakpoint call, making this flaky, so skip the line check.
startLineno = -1
}
expectStackFrames(t, stack, startLineno, 1000, 4, 4)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册