mirror of
https://github.com/ddworken/hishtory.git
synced 2025-07-01 05:01:08 +02:00
Skip datadog integratio on macos if colima fails to start, since colima appears to be flaky due to a code signing error
This commit is contained in:
@ -58,7 +58,12 @@ func TestMain(m *testing.M) {
|
||||
if _, has_dd_api_key := os.LookupEnv("DD_API_KEY"); testutils.IsGithubAction() && has_dd_api_key {
|
||||
ddStats, err := statsd.New("localhost:8125")
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("Failed to start DataDog statsd: %w\n", err))
|
||||
err := fmt.Errorf("Failed to start DataDog statsd: %w\n", err)
|
||||
if runtime.GOOS == "darwin" {
|
||||
fmt.Printf("%v", err)
|
||||
} else {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
GLOBAL_STATSD = ddStats
|
||||
}
|
||||
|
Reference in New Issue
Block a user