veyron/runtimes/google/ipc: new Serve method to replace Register+Publish.
Change-Id: Icc69645e753a3e84c5d87a3e9d2d4abd36275fff
diff --git a/tools/binary/impl/impl_test.go b/tools/binary/impl/impl_test.go
index 86595e1..70c0122 100644
--- a/tools/binary/impl/impl_test.go
+++ b/tools/binary/impl/impl_test.go
@@ -84,15 +84,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
}