diff options
author | Håvard Pettersen <havardpe@oath.com> | 2021-09-14 09:50:51 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2021-09-16 11:17:11 +0000 |
commit | 851e46a8912ece85870c9780a65dcc314ba3d539 (patch) | |
tree | 8affe3a41258f61e1f111ffabfd1ac8ef85a0f91 /slobrok | |
parent | 20dc2c895ab6cbefb9a02c9d1fdb8a2b543f1867 (diff) |
low-level testing of fnet enabled by
1. Manipulating how much time is spent waiting for events while also
manipulating how the passing of time is observed by the transport
threads.
(fnet::TimeTools)
2. Periodic call-backs from FNET_Transport. All transport threads are
blocked during these call-backs. Between each call-back, all
transport threads perform a single event loop iteration and any
async operations not performed in transport threads are flushed.
(FNET_Transport::attach_capture_hook)
3. Combining 1 and 2 in a way that lets the test code run all
transport threads one iteration at a time, letting the transport
threads run concurrently with each other, but no transport thread
is allowed to run concurrently with the test code.
(fnet::TransportDebugger)
Diffstat (limited to 'slobrok')
-rw-r--r-- | slobrok/src/tests/local_rpc_monitor_map/local_rpc_monitor_map_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slobrok/src/tests/local_rpc_monitor_map/local_rpc_monitor_map_test.cpp b/slobrok/src/tests/local_rpc_monitor_map/local_rpc_monitor_map_test.cpp index 46f6837c4f1..8624e38c787 100644 --- a/slobrok/src/tests/local_rpc_monitor_map/local_rpc_monitor_map_test.cpp +++ b/slobrok/src/tests/local_rpc_monitor_map/local_rpc_monitor_map_test.cpp @@ -104,7 +104,7 @@ struct LocalRpcMonitorMapTest : public ::testing::Test { ServiceMapping mapping_conflict; LocalRpcMonitorMapTest() : time(duration::zero()), - scheduler(&time, &time), monitor_log(), map_log(), + scheduler(&time), monitor_log(), map_log(), map(&scheduler, [this](auto &owner) { EXPECT_EQ(&owner, &map); |