remove testify dependency through mock package

Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
Alexandre Beslic 2015-06-12 15:54:16 -07:00
parent 48f5dca2ce
commit 79c320c1cf
2 changed files with 3 additions and 7 deletions

View file

@ -10,8 +10,6 @@ import (
type Backend string
const (
// MOCK backend
MOCK Backend = "mock"
// CONSUL backend
CONSUL = "consul"
// ETCD backend

View file

@ -4,7 +4,6 @@ import (
"github.com/docker/libkv/store"
"github.com/docker/libkv/store/consul"
"github.com/docker/libkv/store/etcd"
"github.com/docker/libkv/store/mock"
"github.com/docker/libkv/store/zookeeper"
)
@ -14,10 +13,9 @@ type Initialize func(addrs []string, options *store.Config) (store.Store, error)
var (
// Backend initializers
initializers = map[store.Backend]Initialize{
store.MOCK: mock.InitializeMock,
store.CONSUL: consul.InitializeConsul,
store.ETCD: etcd.InitializeEtcd,
store.ZK: zookeeper.InitializeZookeeper,
store.CONSUL: consul.New,
store.ETCD: etcd.New,
store.ZK: zookeeper.New,
}
)