Skip to content
Snippets Groups Projects
Commit 4d18c96a authored by Steven Murray's avatar Steven Murray
Browse files

[objectstore] Fixed cta/CTA#875 gtest cannot safely print...

[objectstore] Fixed cta/CTA#875 gtest cannot safely print ContainerTraits<ArchiveQueue,ArchiveQueueToTransferForUser>::PoppedElementsSummary
parent bb0d5eac
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,17 @@
#include <gtest/gtest.h>
std::ostream& operator<<(std::ostream& os, const cta::objectstore::ContainerTraits<cta::objectstore::RetrieveQueue, cta::objectstore::RetrieveQueueToTransfer>::PoppedElementsSummary& s) {
os <<
"{"
"files=" << s.files << ","
"bytes=" << s.bytes << ","
"diskSystemFull=" << (s.diskSystemFull ? "true" : "false") << ","
"fullDiskSystem=\"" << s.fullDiskSystem << "\""
"}";
return os;
}
namespace unitTests {
/**
......@@ -341,4 +352,4 @@ TEST(ObjectStore, RetrieveQueueAlgorithmsUpdatesOldestJobQueueTime) {
ASSERT_TRUE(oldestJobStartTime > firstBatchOldestJobStartTime);
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment