From 7f98c08ff517990caf45358efb5b1143be65aac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Kivim=C3=A4ki?= Date: Mon, 11 Nov 2024 14:24:46 +0200 Subject: [PATCH] test: define concurrency level by available CPU cores --- test/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/main_test.go b/test/main_test.go index 817fd39a..c9db8362 100644 --- a/test/main_test.go +++ b/test/main_test.go @@ -18,6 +18,7 @@ import ( "path/filepath" "reflect" "regexp" + "runtime" "strings" "testing" "time" @@ -70,7 +71,7 @@ func TestFeatures(t *testing.T) { Options: &godog.Options{ Format: "pretty", Strict: true, - Concurrency: 8, + Concurrency: runtime.NumCPU(), Paths: []string{"features"}, TestingT: t, },