tests: fix TestIssue419 (#2682)

errChan should not be closed otherwise the function that requests the
manual stop might find it closed.
This commit is contained in:
Alessandro Arzilli 2021-08-31 19:44:57 +02:00 committed by GitHub
parent 1433c07957
commit 7dddcc186e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,4 @@
//go:build linux || darwin
// +build linux darwin
package proc_test
@ -36,7 +37,6 @@ func TestIssue419(t *testing.T) {
// SIGINT directed at the inferior should be passed along not swallowed by delve
withTestProcess("issue419", t, func(p *proc.Target, fixture protest.Fixture) {
defer close(errChan)
setFunctionBreakpoint(p, t, "main.main")
assertNoError(p.Continue(), t, "Continue()")
resumeChan := make(chan struct{}, 1)