overlay: test actual Opts
AsynchronousRemove opt was untested while it is specified by default in the plugin init. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -38,8 +38,11 @@ import (
|
||||
is "gotest.tools/assert/cmp"
|
||||
)
|
||||
|
||||
// SnapshotterFunc is used in SnapshotterSuite
|
||||
type SnapshotterFunc func(ctx context.Context, root string) (snapshots.Snapshotter, func() error, error)
|
||||
|
||||
// SnapshotterSuite runs a test suite on the snapshotter given a factory function.
|
||||
func SnapshotterSuite(t *testing.T, name string, snapshotterFn func(ctx context.Context, root string) (snapshots.Snapshotter, func() error, error)) {
|
||||
func SnapshotterSuite(t *testing.T, name string, snapshotterFn SnapshotterFunc) {
|
||||
restoreMask := clearMask()
|
||||
defer restoreMask()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user