mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration-cli: format code with gofumpt
Formatting the code with https://github.com/mvdan/gofumpt Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -156,7 +156,7 @@ func (s *DockerCLIPruneSuite) TestPruneContainerLabel(c *testing.T) {
|
||||
d, err := os.MkdirTemp("", "integration-cli-")
|
||||
assert.NilError(c, err)
|
||||
defer os.RemoveAll(d)
|
||||
err = os.WriteFile(filepath.Join(d, "config.json"), []byte(config), 0644)
|
||||
err = os.WriteFile(filepath.Join(d, "config.json"), []byte(config), 0o644)
|
||||
assert.NilError(c, err)
|
||||
|
||||
// With config.json only, prune based on label=foobar
|
||||
@@ -208,7 +208,7 @@ func (s *DockerCLIPruneSuite) TestPruneVolumeLabel(c *testing.T) {
|
||||
d, err := os.MkdirTemp("", "integration-cli-")
|
||||
assert.NilError(c, err)
|
||||
defer os.RemoveAll(d)
|
||||
err = os.WriteFile(filepath.Join(d, "config.json"), []byte(config), 0644)
|
||||
err = os.WriteFile(filepath.Join(d, "config.json"), []byte(config), 0o644)
|
||||
assert.NilError(c, err)
|
||||
|
||||
// With config.json only, prune based on label=foobar
|
||||
|
||||
Reference in New Issue
Block a user