mirror of
https://github.com/monero-project/monero.git
synced 2025-05-03 23:54:54 -04:00
Revert "Merge pull request #7136"
This reverts commit63c7ca07fb
, reversing changes made to2218e23e84
.
This commit is contained in:
parent
d544fd0f52
commit
e45619e61e
20 changed files with 215 additions and 319 deletions
|
@ -153,7 +153,7 @@ TEST(test_epee_connection, test_lifetime)
|
|||
delay(delay),
|
||||
on_connection_close_f(on_connection_close_f)
|
||||
{}
|
||||
virtual int invoke(int, const epee::span<const uint8_t>, epee::byte_stream&, context_t&) override { epee::misc_utils::sleep_no_w(delay); return {}; }
|
||||
virtual int invoke(int, const epee::span<const uint8_t>, epee::byte_slice&, context_t&) override { epee::misc_utils::sleep_no_w(delay); return {}; }
|
||||
virtual int notify(int, const epee::span<const uint8_t>, context_t&) override { return {}; }
|
||||
virtual void callback(context_t&) override {}
|
||||
virtual void on_connection_new(context_t&) override {}
|
||||
|
@ -282,7 +282,7 @@ TEST(test_epee_connection, test_lifetime)
|
|||
for (auto i = 0; i < N; ++i) {
|
||||
tag = create_connection();
|
||||
ASSERT_TRUE(shared_state->get_connections_count() == 1);
|
||||
success = shared_state->invoke_async(1, epee::levin::message_writer{}, tag, [](int, const epee::span<const uint8_t>, context_t&){}, TIMEOUT);
|
||||
success = shared_state->invoke_async(1, {}, tag, [](int, const epee::span<const uint8_t>, context_t&){}, TIMEOUT);
|
||||
ASSERT_TRUE(success);
|
||||
while (shared_state->sock_count == 1) {
|
||||
success = shared_state->foreach_connection([&shared_state, &tag](context_t&){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue