@@ -8,15 +8,15 @@ import (
88 "testing"
99
1010 "github.com/docker/cli/internal/test"
11- "github.com/moby/moby/api/types/checkpoint "
11+ "github.com/moby/moby/client "
1212 "gotest.tools/v3/assert"
1313 is "gotest.tools/v3/assert/cmp"
1414)
1515
1616func TestCheckpointCreateErrors (t * testing.T ) {
1717 testCases := []struct {
1818 args []string
19- checkpointCreateFunc func (container string , options checkpoint. CreateOptions ) error
19+ checkpointCreateFunc func (container string , options client. CheckpointCreateOptions ) error
2020 expectedError string
2121 }{
2222 {
@@ -29,7 +29,7 @@ func TestCheckpointCreateErrors(t *testing.T) {
2929 },
3030 {
3131 args : []string {"foo" , "bar" },
32- checkpointCreateFunc : func (container string , options checkpoint. CreateOptions ) error {
32+ checkpointCreateFunc : func (container string , options client. CheckpointCreateOptions ) error {
3333 return errors .New ("error creating checkpoint for container foo" )
3434 },
3535 expectedError : "error creating checkpoint for container foo" ,
@@ -59,9 +59,9 @@ func TestCheckpointCreateWithOptions(t *testing.T) {
5959 leaveRunning := strconv .FormatBool (tc )
6060 t .Run ("leave-running=" + leaveRunning , func (t * testing.T ) {
6161 var actualContainerName string
62- var actualOptions checkpoint. CreateOptions
62+ var actualOptions client. CheckpointCreateOptions
6363 cli := test .NewFakeCli (& fakeClient {
64- checkpointCreateFunc : func (container string , options checkpoint. CreateOptions ) error {
64+ checkpointCreateFunc : func (container string , options client. CheckpointCreateOptions ) error {
6565 actualContainerName = container
6666 actualOptions = options
6767 return nil
@@ -75,7 +75,7 @@ func TestCheckpointCreateWithOptions(t *testing.T) {
7575 assert .Check (t , cmd .Flags ().Set ("checkpoint-dir" , checkpointDir ))
7676 assert .NilError (t , cmd .Execute ())
7777 assert .Check (t , is .Equal (actualContainerName , containerName ))
78- expected := checkpoint. CreateOptions {
78+ expected := client. CheckpointCreateOptions {
7979 CheckpointID : checkpointName ,
8080 CheckpointDir : checkpointDir ,
8181 Exit : ! tc ,
0 commit comments