Skip to content

Commit 3efbfab

Browse files
committed
[TMP] Debug
1 parent 23ca5c1 commit 3efbfab

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Client/Connection.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ class Connection
247247
rid_t commit_auth(std::string_view user,
248248
std::string_view passwd);
249249

250-
private:
251250
ConnectionImpl<BUFFER, NetProvider> *impl;
251+
private:
252252
static constexpr size_t GC_STEP_CNT = 100;
253253
size_t gc_step = 0;
254254

@@ -367,6 +367,7 @@ Connection<BUFFER, NetProvider>::Connection(Connector<BUFFER, NetProvider> &conn
367367
space(*this), impl(new ConnectionImpl(connector))
368368
{
369369
impl->ref();
370+
LOG_DEBUG("New connection ", this, " with impl ", impl);
370371
}
371372

372373
template<class BUFFER, class NetProvider>

test/ClientTest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,11 @@ test_wait(Connector<BUFFER, NetProvider> &client)
11661166

11671167
TEST_CASE("waitAny(0) and waitAny(-1)");
11681168
f = conn.call("remote_sleep", std::forward_as_tuple(SLEEP_TIME));
1169-
fail_unless(!client.waitAny(0).has_value());
1169+
auto resp = client.waitAny(0);
1170+
if (resp.has_value()) {
1171+
LOG_ERROR("Unexpectedly got connection ", &resp.value(), " with impl ", resp.value().impl);
1172+
std::abort();
1173+
}
11701174
fail_unless(client.waitAny(-1).has_value());
11711175
response = conn.getResponse(f);
11721176
fail_unless(response.has_value());

0 commit comments

Comments
 (0)