Skip to content

Commit 5a3d3f6

Browse files
committed
Update load image test to use local import
Signed-off-by: Derek McGowan <[email protected]>
1 parent 6041d4e commit 5a3d3f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration/image_load_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ func TestImageLoad(t *testing.T) {
5555
t.Logf("load image in cri")
5656
ctr, err := exec.LookPath("ctr")
5757
require.NoError(t, err, "ctr should be installed, make sure you've run `make install-deps`")
58+
// Add --local=true option since currently the transfer service
59+
// does not provide enough progress to avoid timeout
5860
output, err = exec.Command(ctr, "-address="+containerdEndpoint,
59-
"-n=k8s.io", "images", "import", tar).CombinedOutput()
61+
"-n=k8s.io", "images", "import", "--local=true", tar).CombinedOutput()
6062
require.NoError(t, err, "output: %q", output)
6163

6264
t.Logf("make sure image is loaded")

0 commit comments

Comments
 (0)