package boltdb

import (
	"context"
	"path/filepath"
	"testing"

	"github.com/docker/containerd/snapshot/storage"
	"github.com/docker/containerd/snapshot/storage/testsuite"
)

func BenchmarkSuite(b *testing.B) {
	testsuite.Benchmarks(b, "BoltDB", func(ctx context.Context, root string) (storage.MetaStore, error) {
		return NewMetaStore(ctx, filepath.Join(root, "metadata.db"))
	})
}

package boltdb

import (
	"context"
	"path/filepath"
	"testing"

	"github.com/docker/containerd/snapshot/storage"
	"github.com/docker/containerd/snapshot/storage/testsuite"

	// Does not require root but flag must be defined for snapshot tests
	_ "github.com/docker/containerd/testutil"
)

func BenchmarkSuite(b *testing.B) {
	testsuite.Benchmarks(b, "BoltDB", func(ctx context.Context, root string) (storage.MetaStore, error) {
		return NewMetaStore(ctx, filepath.Join(root, "metadata.db"))
	})
}

Add root flag to boltdb tests
Add root flag to boltdb tests

Needed for CI to run root coverage

Signed-off-by: Derek McGowan <e1c79a582b6629e6b39e9679f4bb964d25db4aa8@mcgstyle.net> (github: dmcgowan)
