// Run exercise a yarpc client against a rigged httpserver. func Run(t crossdock.T) { fatals := crossdock.Fatals(t) server := t.Param(params.HTTPServer) fatals.NotEmpty(server, "server is required") disp := yarpc.NewDispatcher(yarpc.Config{ Name: "client", Outbounds: yarpc.Outbounds{ "yarpc-test": { Unary: ht.NewOutbound(fmt.Sprintf("http://%s:8085", server)), }, }, }) fatals.NoError(disp.Start(), "could not start Dispatcher") defer disp.Stop() runRaw(t, disp) }