Update load image test to use local import
Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
parent
6041d4e60c
commit
5a3d3f6138
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user