From f34d636f0339fdb2a18c3c811e4192a5d4c8f29a Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Mon, 8 May 2023 20:13:52 +0200 Subject: [PATCH] #2099: Tests: Fix failing test_destroy test --- tests/unit/collection/test_destroy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/collection/test_destroy.cc b/tests/unit/collection/test_destroy.cc index d6a77f2b54..fc711d23d6 100644 --- a/tests/unit/collection/test_destroy.cc +++ b/tests/unit/collection/test_destroy.cc @@ -106,8 +106,8 @@ struct TestDestroy : TestParallelHarness { }; static constexpr int32_t const num_elms_per_node = 8; TEST_F(TestDestroy, test_destroy_1) { - auto const& this_node = theContext()->getNode(); - auto const& num_nodes = theContext()->getNumNodes().get(); + auto const this_node = theContext()->getNode(); + auto const num_nodes = theContext()->getNumNodes().get(); vt::runInEpochCollective([&]{ if (this_node == vt::NodeT{0}) {