integration: fix empty-lines (revive)

integration/config/config_test.go:106:31: empty-lines: extra empty line at the end of a block (revive)
    integration/secret/secret_test.go:106:31: empty-lines: extra empty line at the end of a block (revive)
    integration/network/service_test.go:58:50: empty-lines: extra empty line at the end of a block (revive)
    integration/network/service_test.go:401:58: empty-lines: extra empty line at the end of a block (revive)
    integration/system/event_test.go:30:38: empty-lines: extra empty line at the end of a block (revive)
    integration/plugin/logging/read_test.go:19:41: empty-lines: extra empty line at the end of a block (revive)
    integration/service/list_test.go:30:48: empty-lines: extra empty line at the end of a block (revive)
    integration/service/create_test.go:400:46: empty-lines: extra empty line at the start of a block (revive)
    integration/container/logs_test.go:156:42: empty-lines: extra empty line at the end of a block (revive)
    integration/container/daemon_linux_test.go:135:44: empty-lines: extra empty line at the end of a block (revive)
    integration/container/restart_test.go:160:62: empty-lines: extra empty line at the end of a block (revive)
    integration/container/wait_test.go:181:47: empty-lines: extra empty line at the end of a block (revive)
    integration/container/restart_test.go:116:30: empty-lines: extra empty line at the end of a block (revive)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 786e6d80ba)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-09-23 22:24:46 +02:00
parent 9d44956d8c
commit 31a938c73c
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
12 changed files with 0 additions and 14 deletions

View file

@ -109,7 +109,6 @@ func TestConfigList(t *testing.T) {
})
assert.NilError(t, err)
assert.Check(t, is.DeepEqual(configNamesFromList(entries), tc.expected))
}
}

View file

@ -169,7 +169,6 @@ func TestDaemonHostGatewayIP(t *testing.T) {
assert.Check(t, is.Contains(res.Stdout(), "6.7.8.9"))
c.ContainerRemove(ctx, cID, types.ContainerRemoveOptions{Force: true})
d.Stop(t)
}
// TestRestartDaemonWithRestartingContainer simulates a case where a container is in "restarting" state when

View file

@ -170,7 +170,6 @@ func testLogs(t *testing.T, logDriver string) {
}
return
}
}
assert.DeepEqual(t, stdoutStr, tC.expectedOut)

View file

@ -122,7 +122,6 @@ func TestDaemonRestartKillContainers(t *testing.T) {
break
}
time.Sleep(2 * time.Second)
}
assert.Equal(t, expected, running, "got unexpected running state, expected %v, got: %v", expected, running)
@ -209,5 +208,4 @@ func TestContainerWithAutoRemoveCanBeRestarted(t *testing.T) {
poll.WaitOn(t, testContainer.IsRemoved(ctx, cli, cID))
})
}
}

View file

@ -221,5 +221,4 @@ func TestWaitRestartedContainer(t *testing.T) {
}
})
}
}

View file

@ -37,5 +37,4 @@ func Overlay2Supported(kernelVersion string) bool {
}
requiredV := kernel.VersionInfo{Kernel: 4}
return kernel.CompareKernelVersion(*daemonV, requiredV) > -1
}

View file

@ -96,7 +96,6 @@ func TestDaemonDefaultNetworkPools(t *testing.T) {
assert.NilError(t, err)
assert.Equal(t, out.IPAM.Config[0].Subnet, "175.33.1.0/24")
delInterface(t, defaultNetworkBridge)
}
func TestDaemonRestartWithExistingNetwork(t *testing.T) {
@ -454,5 +453,4 @@ func TestServiceWithDefaultAddressPoolInit(t *testing.T) {
assert.NilError(t, err)
err = d.SwarmLeave(t, true)
assert.NilError(t, err)
}

View file

@ -88,5 +88,4 @@ func TestReadPluginNoRead(t *testing.T) {
assert.Assert(t, strings.TrimSpace(buf.String()) == "hello world", buf.Bytes())
})
}
}

View file

@ -109,7 +109,6 @@ func TestSecretList(t *testing.T) {
})
assert.NilError(t, err)
assert.Check(t, is.DeepEqual(secretNamesFromList(entries), tc.expected))
}
}

View file

@ -398,7 +398,6 @@ func TestCreateServiceSysctls(t *testing.T) {
// net.ipv4.ip_nonlocal_bind is, we can verify that setting the sysctl
// options works
for _, expected := range []string{"0", "1"} {
// store the map we're going to be using everywhere.
expectedSysctls := map[string]string{"net.ipv4.ip_nonlocal_bind": expected}

View file

@ -104,5 +104,4 @@ func TestServiceListWithStatuses(t *testing.T) {
assert.Check(t, is.Equal(service.ServiceStatus.DesiredTasks, replicas))
assert.Check(t, is.Equal(service.ServiceStatus.RunningTasks, replicas))
}
}

View file

@ -71,7 +71,6 @@ func TestEventsExecDie(t *testing.T) {
case <-time.After(time.Second * 3):
t.Fatal("timeout hit")
}
}
// Test case for #18888: Events messages have been switched from generic