From 7dddcc186ee7c03234a576e7eb40ddda7d47c7f0 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Tue, 31 Aug 2021 19:44:57 +0200 Subject: [PATCH] tests: fix TestIssue419 (#2682) errChan should not be closed otherwise the function that requests the manual stop might find it closed. --- pkg/proc/proc_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proc/proc_unix_test.go b/pkg/proc/proc_unix_test.go index 5d7e2f85..74a39cc6 100644 --- a/pkg/proc/proc_unix_test.go +++ b/pkg/proc/proc_unix_test.go @@ -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)