You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c39c785 doc: note construct() call in valid init interface test (xyzconstant)
b9c36c6 test: close sockets unconditionally and check errors with KJ_SYSCALL (xyzconstant)
7eb741e test: drop unnecessary KJ_EXPECT(true) (xyzconstant)
113f1d4 test: join server thread unconditionally in connect tests (xyzconstant)
44bc463 test: drop mp:: prefixes in connect tests (xyzconstant)
038d33e test: share DefaultLogHandler between test files (xyzconstant)
b54a163 test: drop TestSetup socket members in connect tests (xyzconstant)
70467c5 test: add m_ prefix to TestSetup members in connect tests (xyzconstant)
cc260f2 test: replace capnp fix link with upstream PR (xyzconstant)
Pull request description:
Addresses review suggestions left (all of them made by ryanofsky) in the now-merged PRs bitcoin#298 and bitcoin#310.
These are non-critical test cleanups (naming, simplification, comments, etc.) with zero changes to library code.
ACKs for top commit:
ryanofsky:
Code review ACK c39c785. Thanks for the followup!
Tree-SHA512: e703d4508f46978c0be7831d3be04c831829aa5de08873e93fbe4ba02b0a5db71554fd80c30058336a4b3f3a620f496d5fb4bfee66f99fc24234073fa98db4c4
//! Default server event loop log handler, throws so tests can assert on errors.
71
-
voidDefaultLogHandler(mp::LogMessage log)
72
-
{
73
-
KJ_LOG(INFO, log.level, log.message);
74
-
if (log.level == mp::Log::Raise) throwstd::runtime_error(log.message);
75
-
}
76
-
77
67
//! Runs a server EventLoop on its own thread, starts ListenConnections() on a
78
68
//! UnixListener socket, and records connection/disconnection counts through
79
69
//! EventLoop test hooks
@@ -241,7 +231,7 @@ KJ_TEST("ListenConnections handles a client that disconnects before being accept
241
231
// The event loop then reports this as an uncaught task exception. We catch and ignore
242
232
// this specific error here so that the corresponding CI job does not fail.
243
233
//
244
-
// This is a Cap'n Proto bug, a fix is available in the v2 branch at: https://github.com/capnproto/capnproto/commit/7df5bd078f389ded313479981bd0ae06cbcdfe1b#diff-ec577ad66535f58f6d7396ea51d3e56c0065308aa8fb02751cd6a8cfaa67252fR1358-R1372
234
+
// This is a Cap'n Proto bug, fixed by https://github.com/capnproto/capnproto/pull/2748
245
235
if (log.level == mp::Log::Error && log.message.find("Uncaught exception in daemonized task.") != std::string::npos) {
0 commit comments