Merge pull request #610 from dmcgowan/snapshot-move-testsuite

snapshot: move testsuite to sub-package
This commit is contained in:
Michael Crosby
2017-03-07 16:45:04 -08:00
committed by GitHub
5 changed files with 348 additions and 351 deletions

View File

@@ -11,12 +11,13 @@ import (
"github.com/docker/containerd"
"github.com/docker/containerd/snapshot"
"github.com/docker/containerd/snapshot/testsuite"
"github.com/docker/containerd/testutil"
)
func TestOverlay(t *testing.T) {
testutil.RequiresRoot(t)
snapshot.SnapshotterSuite(t, "Overlay", func(root string) (snapshot.Snapshotter, func(), error) {
testsuite.SnapshotterSuite(t, "Overlay", func(root string) (snapshot.Snapshotter, func(), error) {
snapshotter, err := NewSnapshotter(root)
if err != nil {
t.Fatal(err)