Skip to content

Commit

Permalink
fix cout buffering in multi_dev_test
Browse files Browse the repository at this point in the history
  • Loading branch information
diablodale committed May 11, 2023
1 parent 6ea13e0 commit 3a404ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/multiple_devices_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ TEST_CASE("Multiple devices with 50 messages each") {
auto& dev = get<0>(devCounter);
auto& counter = get<1>(devCounter);
if(dev->getOutputQueue("rgb")->tryGet<dai::ImgFrame>()) {
cout << "Device " << dev->getMxId() << " message arrived (" << ++counter << "/" << NUM_MESSAGES << ")\n";
cout << "Device " << dev->getMxId() << " message arrived (" << ++counter << "/" << NUM_MESSAGES << ")" << endl;
}

if(counter < NUM_MESSAGES) {
Expand Down Expand Up @@ -265,7 +265,7 @@ TEST_CASE("Device APIs after Device::close()") {
// Get color queue and wait for one frame
bool ignore{};
if(device->getOutputQueue("color")->get<dai::ImgFrame>(TEST_TIMEOUT, ignore)) {
cout << "Device " << device->getMxId() << " message arrived\n";
cout << "Device " << device->getMxId() << " message arrived" << endl;
}

// Close device
Expand Down

0 comments on commit 3a404ea

Please sign in to comment.