From 485ff0a9da7cac55e131feef66ed18ad31157020 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 17 May 2026 18:18:47 -0700 Subject: [PATCH] quiet DRD error reports testget Complaint is of race between wait and Context cleanup. shared_ptr probably makes this safe, but no down-side to explicit shutdown. --- test/testget.cpp | 1 + test/testput.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/testget.cpp b/test/testget.cpp index 552d639..7ddb336 100644 --- a/test/testget.cpp +++ b/test/testget.cpp @@ -300,6 +300,7 @@ struct Tester { cli.hurryUp(); testOk1(!info->done.wait(2.1)); + cli.close(); } void orphan() diff --git a/test/testput.cpp b/test/testput.cpp index bdd4f56..c13c4e9 100644 --- a/test/testput.cpp +++ b/test/testput.cpp @@ -493,7 +493,7 @@ void testErrorManual(ErrorSource::phase_t phase) struct CancelSource : public server::Source { const Value proto; - bool cancelled = false; + std::atomic cancelled{false}; explicit CancelSource() :proto(nt::NTScalar{}.create())