Move DefaultSnapshotter constants
Move the DefaultSnapshotter constants to the defaults package. Fixes issue #8226. Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"testing"
|
||||
|
||||
. "github.com/containerd/containerd/v2/client"
|
||||
"github.com/containerd/containerd/v2/defaults"
|
||||
"github.com/containerd/containerd/v2/snapshots"
|
||||
"github.com/containerd/containerd/v2/snapshots/testsuite"
|
||||
)
|
||||
@@ -31,7 +32,7 @@ func newSnapshotter(ctx context.Context, root string) (snapshots.Snapshotter, fu
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
sn := client.SnapshotService(DefaultSnapshotter)
|
||||
sn := client.SnapshotService(defaults.DefaultSnapshotter)
|
||||
|
||||
return sn, func() error {
|
||||
// no need to close remote snapshotter
|
||||
@@ -44,5 +45,5 @@ func TestSnapshotterClient(t *testing.T) {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
testsuite.SnapshotterSuite(t, DefaultSnapshotter, newSnapshotter)
|
||||
testsuite.SnapshotterSuite(t, defaults.DefaultSnapshotter, newSnapshotter)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user