Skip to content

Commit d5e6b4a

Browse files
committed
Refactor[bmqa]: Remove trivially true asserts from test
This patch removes two asserts from the `bmqa_message` unit test that are now trivially true due to the previous warning fixes. One is a nonnegative check that is now trivially true by virtue of the type now being unsigned; one is a postcondition check that is necessarily true now. Signed-off-by: Patrick M. Niedzielski <[email protected]>
1 parent 9a4182e commit d5e6b4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/groups/bmq/bmqa/bmqa_message.t.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,13 @@ void generateSubQueueInfos(bmqp::Protocol::SubQueueInfosArray* subQueueInfos,
6767
size_t numSubQueueInfos)
6868
{
6969
BSLS_ASSERT_SAFE(subQueueInfos);
70-
BSLS_ASSERT_SAFE(numSubQueueInfos >= 0);
7170

7271
subQueueInfos->clear();
7372

7473
for (size_t i = 0; i < numSubQueueInfos; ++i) {
7574
const unsigned int subQueueId = generateRandomInteger(0, 120);
7675
subQueueInfos->push_back(bmqp::SubQueueInfo(subQueueId));
7776
}
78-
79-
BSLS_ASSERT_SAFE(subQueueInfos->size() == numSubQueueInfos);
8077
}
8178
}
8279

0 commit comments

Comments
 (0)