mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix emptyStringTest from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
|
||||
assert.NilError(c, err)
|
||||
|
||||
settings := inspectJSON.NetworkSettings
|
||||
assert.Assert(c, len(settings.IPAddress) != 0)
|
||||
assert.Assert(c, settings.IPAddress != "")
|
||||
assert.Assert(c, settings.Networks["bridge"] != nil)
|
||||
assert.Equal(c, settings.IPAddress, settings.Networks["bridge"].IPAddress)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user