Skip to content

Commit

Permalink
integration: fix empty-lines (revive)
Browse files Browse the repository at this point in the history
    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>
  • Loading branch information
thaJeztah committed Sep 27, 2022
1 parent ecb4ed1 commit 786e6d8
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion integration/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func TestConfigList(t *testing.T) {
})
assert.NilError(t, err)
assert.Check(t, is.DeepEqual(configNamesFromList(entries), tc.expected))

}
}

Expand Down
1 change: 0 additions & 1 deletion integration/container/daemon_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion integration/container/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ func testLogs(t *testing.T, logDriver string) {
}
return
}

}

assert.DeepEqual(t, stdoutStr, tC.expectedOut)
Expand Down
2 changes: 0 additions & 2 deletions integration/container/restart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -209,5 +208,4 @@ func TestContainerWithAutoRemoveCanBeRestarted(t *testing.T) {
poll.WaitOn(t, testContainer.IsRemoved(ctx, cli, cID))
})
}

}
1 change: 0 additions & 1 deletion integration/container/wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,4 @@ func TestWaitRestartedContainer(t *testing.T) {
}
})
}

}
1 change: 0 additions & 1 deletion integration/internal/requirement/requirement_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ func Overlay2Supported(kernelVersion string) bool {
}
requiredV := kernel.VersionInfo{Kernel: 4}
return kernel.CompareKernelVersion(*daemonV, requiredV) > -1

}
2 changes: 0 additions & 2 deletions integration/network/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -454,5 +453,4 @@ func TestServiceWithDefaultAddressPoolInit(t *testing.T) {
assert.NilError(t, err)
err = d.SwarmLeave(t, true)
assert.NilError(t, err)

}
1 change: 0 additions & 1 deletion integration/plugin/logging/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ func TestReadPluginNoRead(t *testing.T) {
assert.Assert(t, strings.TrimSpace(buf.String()) == "hello world", buf.Bytes())
})
}

}
1 change: 0 additions & 1 deletion integration/secret/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func TestSecretList(t *testing.T) {
})
assert.NilError(t, err)
assert.Check(t, is.DeepEqual(secretNamesFromList(entries), tc.expected))

}
}

Expand Down
1 change: 0 additions & 1 deletion integration/service/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
1 change: 0 additions & 1 deletion integration/service/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

}
1 change: 0 additions & 1 deletion integration/system/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 786e6d8

Please sign in to comment.