func TestEtcdStore(t *testing.T) { server, err := embeddedetcd.NewSimpleEtcd() require.Nil(t, err) defer func() { require.Nil(t, server.Destroy()) }() c, err := etcd.New(etcd.Config{Endpoints: []string{ fmt.Sprintf("http://localhost:%d", server.Port)}}) require.Nil(t, err) test.RunStoreTestSuite(newEtcdStore(etcdutil.NewClient(c)), t) }
func TestInMemStore(t *testing.T) { test.RunStoreTestSuite(&testableInMemStore{}, t) }