From 5a3d3f61385b7511204b13432718668d9e32c935 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 27 Dec 2023 13:37:54 -0800 Subject: [PATCH] Update load image test to use local import Signed-off-by: Derek McGowan --- integration/image_load_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/image_load_test.go b/integration/image_load_test.go index c504cef9f..31e6d279d 100644 --- a/integration/image_load_test.go +++ b/integration/image_load_test.go @@ -55,8 +55,10 @@ func TestImageLoad(t *testing.T) { t.Logf("load image in cri") ctr, err := exec.LookPath("ctr") require.NoError(t, err, "ctr should be installed, make sure you've run `make install-deps`") + // Add --local=true option since currently the transfer service + // does not provide enough progress to avoid timeout output, err = exec.Command(ctr, "-address="+containerdEndpoint, - "-n=k8s.io", "images", "import", tar).CombinedOutput() + "-n=k8s.io", "images", "import", "--local=true", tar).CombinedOutput() require.NoError(t, err, "output: %q", output) t.Logf("make sure image is loaded")