@@ -10,7 +10,7 @@ import (
1010 "strings"
1111 "testing"
1212
13- "github.com/docker/docker/api/types"
13+ "github.com/docker/docker/api/types/checkpoint "
1414 "github.com/docker/docker/errdefs"
1515 "gotest.tools/v3/assert"
1616 is "gotest.tools/v3/assert/cmp"
@@ -20,7 +20,7 @@ func TestCheckpointCreateError(t *testing.T) {
2020 client := & Client {
2121 client : newMockClient (errorMock (http .StatusInternalServerError , "Server error" )),
2222 }
23- err := client .CheckpointCreate (context .Background (), "nothing" , types. CheckpointCreateOptions {
23+ err := client .CheckpointCreate (context .Background (), "nothing" , checkpoint. CreateOptions {
2424 CheckpointID : "noting" ,
2525 Exit : true ,
2626 })
@@ -43,7 +43,7 @@ func TestCheckpointCreate(t *testing.T) {
4343 return nil , fmt .Errorf ("expected POST method, got %s" , req .Method )
4444 }
4545
46- createOptions := & types. CheckpointCreateOptions {}
46+ createOptions := & checkpoint. CreateOptions {}
4747 if err := json .NewDecoder (req .Body ).Decode (createOptions ); err != nil {
4848 return nil , err
4949 }
@@ -63,7 +63,7 @@ func TestCheckpointCreate(t *testing.T) {
6363 }),
6464 }
6565
66- err := client .CheckpointCreate (context .Background (), expectedContainerID , types. CheckpointCreateOptions {
66+ err := client .CheckpointCreate (context .Background (), expectedContainerID , checkpoint. CreateOptions {
6767 CheckpointID : expectedCheckpointID ,
6868 Exit : true ,
6969 })
0 commit comments