diff --git a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp index 886027e161..f45d62e38c 100644 --- a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp +++ b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp @@ -1285,9 +1285,8 @@ void NodeNameTest::onEnter() return true; }); - int i = 1; log("will find all nodes with name 'test' twice"); - enumerateChildren("test", [&i](const Node* node) -> bool { + enumerateChildren("test", [](const Node* node) -> bool { log("find node with name 'test'"); return false; });