Work around a paralleltest crash
> 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č <mitr@redhat.com>
This commit is contained in:
parent
7f0dae6fea
commit
c497e66e9a
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
func TestTree(*testing.T) {
|
func TestTree(_ *testing.T) {
|
||||||
nodes := []treeNode{
|
nodes := []treeNode{
|
||||||
{"F", "H", []string{}},
|
{"F", "H", []string{}},
|
||||||
{"F", "I", []string{}},
|
{"F", "I", []string{}},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue