MCPcopy Create free account
hub / github.com/3rdparty/libprocess / TEST_F_TEMP_DISABLED_ON_WINDOWS

Function TEST_F_TEMP_DISABLED_ON_WINDOWS

src/tests/grpc_tests.cpp:259–285  ·  view source on GitHub ↗

This test verifies that a gRPC future can be discarded before the server processes the given call.

Source from the content-addressed store, hash-verified

257// This test verifies that a gRPC future can be discarded before the
258// server processes the given call.
259TEST_F_TEMP_DISABLED_ON_WINDOWS(GRPCClientTest, DiscardedBeforeServerStarted)
260{
261 PingPongServer server;
262
263 EXPECT_CALL(server, Send(_, _, _))
264 .Times(0);
265
266 client::Connection connection(server_address());
267 client::Runtime runtime;
268
269 Future<Try<Pong, StatusError>> pong = runtime.call(
270 connection,
271 GRPC_CLIENT_METHOD(PingPong, Send),
272 Ping(),
273 call_options());
274
275 pong.discard();
276
277 ASSERT_SOME(server.startup(server_address()));
278
279 AWAIT_EXPECT_DISCARDED(pong);
280
281 runtime.terminate();
282 AWAIT_ASSERT_READY(runtime.wait());
283
284 ASSERT_SOME(server.shutdown());
285}
286
287
288// This test verifies that a gRPC future can be discarded before and

Callers

nothing calls this directly

Calls 6

callMethod · 0.80
startupMethod · 0.80
discardMethod · 0.45
terminateMethod · 0.45
waitMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected