From b5483aa9cb237c250fbd879ba44da0a2702e4cae Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sun, 21 Jun 2015 13:22:29 -0500 Subject: [PATCH] Set GOMAXPROCS in proc_test Makes for more deterministic test runs. --- proc/proc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proc/proc.go b/proc/proc.go index 67d55b8b..1974d6d2 100644 --- a/proc/proc.go +++ b/proc/proc.go @@ -20,6 +20,10 @@ import ( "github.com/derekparker/delve/source" ) +func init() { + runtime.GOMAXPROCS(2) +} + // Process represents all of the information the debugger // is holding onto regarding the process we are debugging. type Process struct { -- GitLab