diff --git a/internal/deviceplugin/deviceplugin_test.go b/internal/deviceplugin/deviceplugin_test.go index 5ea32a88..49c895ab 100644 --- a/internal/deviceplugin/deviceplugin_test.go +++ b/internal/deviceplugin/deviceplugin_test.go @@ -187,7 +187,7 @@ func TestSetupAndServe(t *testing.T) { kubelet.Unlock() pluginSocket = path.Join(devicePluginPath, pEndpoint) if pEndpoint != "" { - if _, err := os.Stat(pluginSocket); err == nil { + if _, err = os.Stat(pluginSocket); err == nil { break } }