veyron/runtimes/google/ipc: new Serve method to replace Register+Publish.
Change-Id: Icc69645e753a3e84c5d87a3e9d2d4abd36275fff
diff --git a/tools/profile/impl/impl_test.go b/tools/profile/impl/impl_test.go
index e0d179a..8500787 100644
--- a/tools/profile/impl/impl_test.go
+++ b/tools/profile/impl/impl_test.go
@@ -88,15 +88,15 @@
t.Errorf("NewServer failed: %v", err)
return nil, nil, err
}
- if err := server.Register("", dispatcher); err != nil {
- t.Errorf("Register failed: %v", err)
- return nil, nil, err
- }
endpoint, err := server.Listen("tcp", "localhost:0")
if err != nil {
t.Errorf("Listen failed: %v", err)
return nil, nil, err
}
+ if err := server.Serve("", dispatcher); err != nil {
+ t.Errorf("Serve failed: %v", err)
+ return nil, nil, err
+ }
return server, endpoint, nil
}