From c497e66e9a2be4148884a5f7142c9a9946b92ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 26 Sep 2022 20:27:16 +0200 Subject: [PATCH] Work around a paralleltest crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > ERRO [runner] Panic: paralleltest: package "main" (isInitialPkg: true, needAnalyzeSource: true): runtime error: index out of range [0] with length 0: goroutine 5859 [running]: > ... > github.com/kunwardeep/paralleltest/pkg/paralleltest.isTestFunction(0x1b7d8c0?) > github.com/kunwardeep/paralleltest@v1.0.6/pkg/paralleltest/paralleltest.go:252 +0x165 Should not change behavior. Signed-off-by: Miloslav Trmač --- cmd/containers-storage/tree_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/containers-storage/tree_test.go b/cmd/containers-storage/tree_test.go index c9f7437e9..c57d82806 100644 --- a/cmd/containers-storage/tree_test.go +++ b/cmd/containers-storage/tree_test.go @@ -2,7 +2,7 @@ package main import "testing" -func TestTree(*testing.T) { +func TestTree(_ *testing.T) { nodes := []treeNode{ {"F", "H", []string{}}, {"F", "I", []string{}},