mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-17 18:41:16 +02:00
Looks like goroutine launched from suite setup might have a race while trying to access methods which in the end try to load `testing.T` value, as it changes while each individual test is running. This leaves us with less diagnostics, but eliminates the race. Sample: ``` WARNING: DATA RACE Write at 0x00c00035e418 by goroutine 56: github.com/stretchr/testify/suite.(*Suite).SetT() /go/pkg/mod/github.com/stretchr/testify@v1.5.1/suite/suite.go:37 +0x12d github.com/talos-systems/talos/internal/pkg/containers/containerd_test.(*ContainerdSuite).SetT() <autogenerated>:1 +0x4d github.com/stretchr/testify/suite.Run.func2() /go/pkg/mod/github.com/stretchr/testify@v1.5.1/suite/suite.go:119 +0x10f testing.tRunner() /toolchain/go/src/testing/testing.go:991 +0x1eb Previous read at 0x00c00035e418 by goroutine 40: github.com/stretchr/testify/suite.(*Suite).Require() /go/pkg/mod/github.com/stretchr/testify@v1.5.1/suite/suite.go:42 +0xdc github.com/talos-systems/talos/internal/pkg/containers/containerd_test.(*ContainerdSuite).SetupSuite.func1() /src/internal/pkg/containers/containerd/containerd_test.go:119 +0x101 ``` Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>