From 005d30e8497cc43fca1eb0a440c61f0fc0e91bda Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Sun, 29 Jan 2023 12:02:49 +0800 Subject: [PATCH] deflake: TestContainerPids It is kind of race because `sleep 1s` is short live process. See: https://github.com/containerd/containerd/issues/7965#issuecomment-1383218025 Fixes: #7965 Signed-off-by: Wei Fu --- integration/client/client_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/client/client_unix_test.go b/integration/client/client_unix_test.go index 67319580a..05ee02451 100644 --- a/integration/client/client_unix_test.go +++ b/integration/client/client_unix_test.go @@ -30,7 +30,7 @@ var ( testImage = images.Get(images.BusyBox) testMultiLayeredImage = images.Get(images.VolumeCopyUp) shortCommand = withProcessArgs("true") - longCommand = withProcessArgs("/bin/sh", "-c", "while true; do sleep 1; done") + longCommand = withProcessArgs("/bin/sh", "-c", "while true; do sleep 1d; done") ) func TestImagePullSchema1WithEmptyLayers(t *testing.T) {