Skip to content

Commit 79fd6fb

Browse files
author
Marco A. Gutierrez
committed
fix copy paste errors
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
1 parent eab0de9 commit 79fd6fb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/integration/error_output.cc

+2-8
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,15 @@ TEST(ErrorOutput, PrintConfigErrorOutput)
247247
}
248248

249249
////////////////////////////////////////
250-
// Test Model class for sdf::Errors outputs
251-
TEST(ErrorOutput, ModelErrorOutput)
250+
// Test World class for sdf::Errors outputs
251+
TEST(ErrorOutput, WorldErrorOutput)
252252
{
253253
std::stringstream buffer;
254254
sdf::testing::RedirectConsoleStream redir(
255255
sdf::Console::Instance()->GetMsgStream(), &buffer);
256256

257257
sdf::Errors errors;
258258

259-
std::function findFileCb = [](const std::string &_uri)
260-
{
261-
return sdf::testing::TestFile("integration", "model", _uri);
262-
};
263-
264259
std::ostringstream stream;
265260
stream << "<?xml version=\"1.0\"?>"
266261
<< "<sdf version='1.8'>"
@@ -282,7 +277,6 @@ TEST(ErrorOutput, ModelErrorOutput)
282277

283278
sdf::ParserConfig parserConfig;
284279
parserConfig.SetWarningsPolicy(sdf::EnforcementPolicy::ERR);
285-
parserConfig.SetFindCallback(findFileCb);
286280
sdf::readString(stream.str(), parserConfig, sdfParsed, errors);
287281
EXPECT_TRUE(errors.empty());
288282

0 commit comments

Comments
 (0)