Example #1
0
func fixture(t *testing.T) (Client, func()) {
	addr, teardown := fakerpc.Fixture(t)
	c, err := NewClient(addr+"/xmlrpc", "pulse_test", "pulse_test")
	if err != nil {
		t.Fatalf("expected err to be nil, was %q instead", err)
	}
	t.Parallel()
	return c, func() { c.Close(); teardown() }
}
Example #2
0
func fixture(t *testing.T) (*mock.Client, Tool, func()) {
	addr, teardown := fakerpc.Fixture(t)
	mc := mock.NewClient()
	tool, err := New(mc, addr, "pulse_test", "pulse_test")
	if err != nil {
		t.Skip("pulsekit/dev: skipping test: ", err)
	}
	return mc, tool, teardown
}