From 97816238529d173245b361344da4423a9078bec7 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sat, 3 Mar 2018 01:06:49 +0000 Subject: [PATCH] Remove unnecessary container.WithName in kill test This fix removes several unnecessary `container.WithName` usage in docker kill integration test. Signed-off-by: Yong Tang Upstream-commit: 1778719d6ac166250acfaebe5dd99b5e9d151c3e Component: engine --- components/engine/integration/container/kill_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/engine/integration/container/kill_test.go b/components/engine/integration/container/kill_test.go index 45400883fa..a50e1f4a8d 100644 --- a/components/engine/integration/container/kill_test.go +++ b/components/engine/integration/container/kill_test.go @@ -155,8 +155,7 @@ func TestInspectOomKilledTrue(t *testing.T) { ctx := context.Background() client := request.NewAPIClient(t) - name := "testoomkilled" - cID := container.Run(t, ctx, client, container.WithName(name), container.WithCmd("sh", "-c", "x=a; while true; do x=$x$x$x$x; done"), func(c *container.TestContainerConfig) { + cID := container.Run(t, ctx, client, container.WithCmd("sh", "-c", "x=a; while true; do x=$x$x$x$x; done"), func(c *container.TestContainerConfig) { c.HostConfig.Resources.Memory = 32 * 1024 * 1024 }) @@ -174,8 +173,7 @@ func TestInspectOomKilledFalse(t *testing.T) { ctx := context.Background() client := request.NewAPIClient(t) - name := "testoomkilled" - cID := container.Run(t, ctx, client, container.WithName(name), container.WithCmd("sh", "-c", "echo hello world")) + cID := container.Run(t, ctx, client, container.WithCmd("sh", "-c", "echo hello world")) poll.WaitOn(t, container.IsInState(ctx, client, cID, "exited"), poll.WithDelay(100*time.Millisecond))