pubsub: fix TestPublishTimeout
serv.Start() has to occur after all Register calls, or else we panic.
@@ -112,8 +112,8 @@ func TestPublishTimeout(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- serv.Start()
pubsubpb.RegisterPublisherServer(serv.Gsrv, &alwaysFailPublish{})
+ serv.Start()
conn, err := grpc.Dial(serv.Addr, grpc.WithInsecure())
if err != nil {
t.Fatal(err)
