integration/service: 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:
parent
bb5ace2efb
commit
5cc1c6eca0
3 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ func TestServiceCreateInit(t *testing.T) {
|
|||
|
||||
func testServiceCreateInit(daemonEnabled bool) func(t *testing.T) {
|
||||
return func(t *testing.T) {
|
||||
var ops = []daemon.Option{}
|
||||
ops := []daemon.Option{}
|
||||
|
||||
if daemonEnabled {
|
||||
ops = append(ops, daemon.WithInit())
|
||||
|
@ -272,7 +272,7 @@ func TestCreateServiceSecretFileMode(t *testing.T) {
|
|||
Name: "/etc/secret",
|
||||
UID: "0",
|
||||
GID: "0",
|
||||
Mode: 0777,
|
||||
Mode: 0o777,
|
||||
},
|
||||
SecretID: secretResp.ID,
|
||||
SecretName: secretName,
|
||||
|
@ -329,7 +329,7 @@ func TestCreateServiceConfigFileMode(t *testing.T) {
|
|||
Name: "/etc/config",
|
||||
UID: "0",
|
||||
GID: "0",
|
||||
Mode: 0777,
|
||||
Mode: 0o777,
|
||||
},
|
||||
ConfigID: configResp.ID,
|
||||
ConfigName: configName,
|
||||
|
|
|
@ -25,7 +25,7 @@ func TestInspect(t *testing.T) {
|
|||
client := d.NewClientT(t)
|
||||
defer client.Close()
|
||||
|
||||
var now = time.Now()
|
||||
now := time.Now()
|
||||
var instances uint64 = 2
|
||||
serviceSpec := fullSwarmServiceSpec("test-service-inspect"+t.Name(), instances)
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ func TestServiceUpdateSecrets(t *testing.T) {
|
|||
Name: secretTarget,
|
||||
UID: "0",
|
||||
GID: "0",
|
||||
Mode: 0600,
|
||||
Mode: 0o600,
|
||||
},
|
||||
SecretID: resp.ID,
|
||||
SecretName: secretName,
|
||||
|
@ -166,7 +166,7 @@ func TestServiceUpdateConfigs(t *testing.T) {
|
|||
Name: configTarget,
|
||||
UID: "0",
|
||||
GID: "0",
|
||||
Mode: 0600,
|
||||
Mode: 0o600,
|
||||
},
|
||||
ConfigID: resp.ID,
|
||||
ConfigName: configName,
|
||||
|
|
Loading…
Add table
Reference in a new issue