Update load image test to use local import

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan 2023-12-27 13:37:54 -08:00
parent 6041d4e60c
commit 5a3d3f6138
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -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")