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
This commit is contained in:
Cuong Manh Le
2025-04-17 18:47:24 +07:00
committed by Cuong Manh Le
parent c06c8aa859
commit d1ea1ba08c

View File

@@ -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 {