From 4b08b460dc2c5b11c4ee60c195fed6e508b4a2fe Mon Sep 17 00:00:00 2001 From: Jorge Perez Date: Mon, 6 May 2024 13:32:07 -0300 Subject: [PATCH] Fix tests pulling from wrong server (#421) Signed-off-by: Jorge Perez --- src/gz_TEST.cc | 2 +- src/gz_src_TEST.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gz_TEST.cc b/src/gz_TEST.cc index f60219ba..b3c6c6d5 100644 --- a/src/gz_TEST.cc +++ b/src/gz_TEST.cc @@ -98,7 +98,7 @@ TEST(CmdLine, IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ListFail)) TEST(CmdLine, IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ModelListConfigServerUgly)) { - auto output = custom_exec_str(g_listCmd + " -t model --raw"); + auto output = custom_exec_str(g_listCmd + " -t model --raw -u 'https://fuel.gazebosim.org' -o openrobotics"); EXPECT_NE(output.find("https://fuel.gazebosim.org/1.0/"), std::string::npos) << output; EXPECT_EQ(output.find("owners"), std::string::npos) << output; diff --git a/src/gz_src_TEST.cc b/src/gz_src_TEST.cc index 62b1f4fe..18d8f077 100644 --- a/src/gz_src_TEST.cc +++ b/src/gz_src_TEST.cc @@ -98,7 +98,7 @@ TEST_F(CmdLine, ModelListFail) // https://github.com/gazebosim/gz-fuel-tools/issues/105 TEST_F(CmdLine, ModelListConfigServerUgly) { - EXPECT_TRUE(listModels("", "openroboticstest", "true")); + EXPECT_TRUE(listModels("https://fuel.gazebosim.org", "openroboticstest", "true")); EXPECT_NE(this->stdOutBuffer.str().find("https://fuel.gazebosim.org"), std::string::npos) << this->stdOutBuffer.str();