示例#1
0
文件: fixtures_test.go 项目: rudle/p2
// 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
}
示例#2
0
func makeStore(t *testing.T) (Store, consulutil.Fixture) {
	f := consulutil.NewFixture(t)
	store := kp.NewConsulStore(f.Client)
	return store, f
}