mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix comparison rule from errorlint
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -143,7 +144,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *testing.T) {
|
||||
}
|
||||
|
||||
for {
|
||||
if err := unix.Kill(s.d.Pid(), 0); err == unix.ESRCH {
|
||||
if err := unix.Kill(s.d.Pid(), 0); errors.Is(err, unix.ESRCH) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user