TEST_F(RpcServerTests, BasicTest) {
  networking::RpcServer rpc_server(9001);
  networking::PelotonService service;

  bool status = rpc_server.RegisterService(&service);
  EXPECT_EQ(status, true);

  auto ptr = rpc_server.FindMethod(1);
  EXPECT_EQ(ptr, NULL);
}
Example #2
0
void umain(int argc, char **argv)
{
    int r, i;

    for (i = 0; i < NBUCKETS; i++)
        table[i] = NULL;

    r = rpc_server_init(PORT);
    if (r < 0)
        exit();

    rpc_server(proc);
    cprintf("Should not return\n");
}