forked from TrueCloudLab/distribution
65b0d73cb7
This change is slightly more complex than previous package maves in that the package name changed. To address this, we simply always reference the package driver as storagedriver to avoid compatbility issues with existing code. While unfortunate, this can be cleaned up over time. Signed-off-by: Stephen J Day <stephen.day@docker.com>
24 lines
676 B
Go
24 lines
676 B
Go
package inmemory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
|
"github.com/docker/distribution/registry/storage/driver/testsuites"
|
|
|
|
"gopkg.in/check.v1"
|
|
)
|
|
|
|
// Hook up gocheck into the "go test" runner.
|
|
func Test(t *testing.T) { check.TestingT(t) }
|
|
|
|
func init() {
|
|
inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
|
return New(), nil
|
|
}
|
|
testsuites.RegisterInProcessSuite(inmemoryDriverConstructor, testsuites.NeverSkip)
|
|
|
|
// BUG(stevvooe): Disable flaky IPC tests for now when we can troubleshoot
|
|
// the problems with libchan.
|
|
// testsuites.RegisterIPCSuite(driverName, nil, testsuites.NeverSkip)
|
|
}
|