Skip to content

Commit

Permalink
FuelClient.cc: include <deque> (#213)
Browse files Browse the repository at this point in the history
* FuelClient.cc: include <deque>

Fixes the Windows build.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>

* ign_src_TEST: print error messages

Signed-off-by: Steve Peters <scpeters@openrobotics.org>

* print one more error message

Signed-off-by: Steve Peters <scpeters@openrobotics.org>

* ign.cc: remove console error message

This was introduced in #199.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Nov 8, 2021
1 parent c680ee8 commit 4edeed5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/FuelClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#endif

#include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <memory>
Expand Down
3 changes: 0 additions & 3 deletions src/ign.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,6 @@ extern "C" IGNITION_FUEL_TOOLS_VISIBLE int downloadUrl(const char *_url,
if (downloadWorlds)
{
auto result = client.DownloadWorlds(worldIds, _jobs);
ignerr << "Failed to download worlds for collection ["
<< collection.Name()
<< "]" << std::endl;
}
}
else
Expand Down
6 changes: 4 additions & 2 deletions src/ign_src_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ TEST_P(DownloadCollectionTest, AllItems)
// Check output
EXPECT_NE(stdOutBuffer.str().find("Download succeeded"), std::string::npos)
<< stdOutBuffer.str();
EXPECT_TRUE(stdErrBuffer.str().empty());
EXPECT_TRUE(stdErrBuffer.str().empty())
<< stdErrBuffer.str();

// Check files
// Model: Backpack
Expand Down Expand Up @@ -630,7 +631,8 @@ TEST_P(DownloadCollectionTest, Worlds)
// Check output
EXPECT_NE(stdOutBuffer.str().find("Download succeeded"), std::string::npos)
<< stdOutBuffer.str();
EXPECT_TRUE(stdErrBuffer.str().empty());
EXPECT_TRUE(stdErrBuffer.str().empty())
<< stdErrBuffer.str();

// Check files
// Model: Backpack
Expand Down

0 comments on commit 4edeed5

Please sign in to comment.