From d1ea1ba08c9996489ace12839193a1cb158882d8 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 17 Apr 2025 18:47:24 +0700 Subject: [PATCH] Disable parallel test for TestUpstreamConfig_SetupBootstrapIP There's a bug in wmi library which causes race condition when getting wmi instance manager concurrently. The new tests for setup bootstrap ip concurrently thus failed unexpectedly. There's going to be a fix sent to the upstream, in the meantime, disable the parallel test temporary. See: https://github.com/microsoft/wmi/issues/165 --- config_internal_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config_internal_test.go b/config_internal_test.go index 3d1f0b7..b37e982 100644 --- a/config_internal_test.go +++ b/config_internal_test.go @@ -34,7 +34,8 @@ func TestUpstreamConfig_SetupBootstrapIP(t *testing.T) { for _, tc := range tests { tc := tc t.Run(tc.name, func(t *testing.T) { - t.Parallel() + // Enable parallel tests once https://github.com/microsoft/wmi/issues/165 fixed. + // t.Parallel() tc.uc.Init() tc.uc.SetupBootstrapIP() if len(tc.uc.bootstrapIPs) == 0 {