github.com/argoproj/argo-cd/v3@v3.2.1/util/metrics/kubectl/kubectl_metrics_test.go (about)

     1  package kubectl
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func Test_RegisterWithClientGo_race(_ *testing.T) {
     8  	// This test ensures that the RegisterWithClientGo function can be called concurrently without causing a data race.
     9  	go RegisterWithClientGo()
    10  	go RegisterWithClientGo()
    11  }