Exemplo n.º 1
0
// Create a new test fixture that spins up a local Consul server.
func NewConsulTestFixture(t *testing.T) *ConsulTestFixture {
	f := new(ConsulTestFixture)
	f.Fixture = consulutil.NewFixture(t)
	f.Store = NewConsulStore(f.Client)
	return f
}
Exemplo n.º 2
0
func makeStore(t *testing.T) (Store, consulutil.Fixture) {
	f := consulutil.NewFixture(t)
	store := kp.NewConsulStore(f.Client)
	return store, f
}