wspr: Move WSPR and Browspr toward the new runtime API.
Also, remove Logger from the runtime.
MultiPart: 2/2
Change-Id: I3748946770b0ee521bb79b851c13e8cd040dd741
diff --git a/services/wsprd/app/app_test.go b/services/wsprd/app/app_test.go
index bdfca88..93849b7 100644
--- a/services/wsprd/app/app_test.go
+++ b/services/wsprd/app/app_test.go
@@ -331,7 +331,7 @@
if err != nil {
return nil, err
}
- controller.rt.Namespace().SetRoots("/" + endpoint.String())
+ veyron2.GetNamespace(controller.Context()).SetRoots("/" + endpoint.String())
controller.serve(serveRequest{
Name: "adder",
@@ -464,14 +464,15 @@
return mock
}
- // Create a client using app's runtime so it points to the right mounttable.
- client, err := rt.controller.rt.NewClient()
+ // Get the client that is relevant to the controller so it talks
+ // to the right mounttable.
+ client := veyron2.GetClient(rt.controller.Context())
if err != nil {
t.Errorf("unable to create client: %v", err)
}
- call, err := client.StartCall(rt.controller.rt.NewContext(), "adder/adder", test.method, test.inArgs)
+ call, err := client.StartCall(rt.controller.Context(), "adder/adder", test.method, test.inArgs)
if err != nil {
t.Errorf("failed to start call: %v", err)
}