[ https://issues.apache.org/jira/browse/MESOS-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605277#comment-14605277 ]
Bernd Mathiske commented on MESOS-2944: --------------------------------------- commit b62517792205babad7b11b3fae665024a3d5b3d5 Author: Joerg Schad <jo...@mesosphere.io> Date: Mon Jun 29 10:27:03 2015 +0200 Change EXPECT to ASSERT in docker containerizer tests that rely on assertion Review: https://reviews.apache.org/r/35920 > Use of EXPECT in test and relying on the checked condition afterwards. > ---------------------------------------------------------------------- > > Key: MESOS-2944 > URL: https://issues.apache.org/jira/browse/MESOS-2944 > Project: Mesos > Issue Type: Bug > Components: test > Reporter: Joerg Schad > Assignee: Joerg Schad > Priority: Minor > Labels: mesosphere > > In docker_containerizer_test we have the following pattern. > {code} > EXPECT_NE(0u, offers.get().size()); > const Offer& offer = offers.get()[0]; > {code} > As we rely on the value afterwards we should use ASSERT_NE instead. In that > case the test will fail immediately. -- This message was sent by Atlassian JIRA (v6.3.4#6332)