@@ -394,7 +394,7 @@ func (s *DockerSuite) TestContainerAPIPause(c *testing.T) {
394394func (s * DockerSuite ) TestContainerAPITop (c * testing.T ) {
395395 testRequires (c , DaemonIsLinux )
396396 out , _ := dockerCmd (c , "run" , "-d" , "busybox" , "/bin/sh" , "-c" , "top" )
397- id := strings .TrimSpace (string ( out ) )
397+ id := strings .TrimSpace (out )
398398 assert .NilError (c , waitRun (id ))
399399
400400 cli , err := client .NewClientWithOpts (client .FromEnv )
@@ -417,7 +417,7 @@ func (s *DockerSuite) TestContainerAPITop(c *testing.T) {
417417func (s * DockerSuite ) TestContainerAPITopWindows (c * testing.T ) {
418418 testRequires (c , DaemonIsWindows )
419419 out := runSleepingContainer (c , "-d" )
420- id := strings .TrimSpace (string ( out ) )
420+ id := strings .TrimSpace (out )
421421 assert .NilError (c , waitRun (id ))
422422
423423 cli , err := client .NewClientWithOpts (client .FromEnv )
@@ -614,7 +614,7 @@ func UtilCreateNetworkMode(c *testing.T, networkMode containertypes.NetworkMode)
614614 containerJSON , err := cli .ContainerInspect (context .Background (), container .ID )
615615 assert .NilError (c , err )
616616
617- assert .Equal (c , containerJSON .HostConfig .NetworkMode , containertypes . NetworkMode ( networkMode ) , "Mismatched NetworkMode" )
617+ assert .Equal (c , containerJSON .HostConfig .NetworkMode , networkMode , "Mismatched NetworkMode" )
618618}
619619
620620func (s * DockerSuite ) TestContainerAPICreateWithCpuSharesCpuset (c * testing.T ) {
0 commit comments