mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
rm-gocheck: convert check.Commentf to string - other
sed -E -i 's#\bcheck.Commentf\(([^\)]+)\)#\1#g' \ -- "integration-cli/docker_cli_build_unix_test.go" "integration-cli/docker_cli_network_unix_test.go" "integration-cli/docker_cli_plugins_test.go" "integration-cli/docker_cli_run_test.go" Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
@@ -56,7 +56,7 @@ func (s *DockerSuite) TestBuildResourceConstraintsAreUsed(c *testing.T) {
|
||||
|
||||
var c1 hostConfig
|
||||
err := json.Unmarshal([]byte(cfg), &c1)
|
||||
assert.Assert(c, err == nil, check.Commentf(cfg))
|
||||
assert.Assert(c, err == nil, cfg)
|
||||
|
||||
assert.Equal(c, c1.Memory, int64(64*1024*1024), "resource constraints not set properly for Memory")
|
||||
assert.Equal(c, c1.MemorySwap, int64(-1), "resource constraints not set properly for MemorySwap")
|
||||
@@ -74,7 +74,7 @@ func (s *DockerSuite) TestBuildResourceConstraintsAreUsed(c *testing.T) {
|
||||
|
||||
var c2 hostConfig
|
||||
err = json.Unmarshal([]byte(cfg), &c2)
|
||||
assert.Assert(c, err == nil, check.Commentf(cfg))
|
||||
assert.Assert(c, err == nil, cfg)
|
||||
|
||||
assert.Assert(c, c2.Memory != int64(64*1024*1024), "resource leaked from build for Memory")
|
||||
assert.Assert(c, c2.MemorySwap != int64(-1), "resource leaked from build for MemorySwap")
|
||||
|
||||
Reference in New Issue
Block a user