Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25B33F03E for ; Wed, 10 Apr 2013 18:36:53 +0000 (UTC) Received: (qmail 56823 invoked by uid 500); 10 Apr 2013 18:36:53 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 56664 invoked by uid 500); 10 Apr 2013 18:36:52 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 56651 invoked by uid 99); 10 Apr 2013 18:36:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 18:36:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 8286D1C8098; Wed, 10 Apr 2013 18:36:50 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0867321638976242731==" MIME-Version: 1.0 Subject: Re: Review Request: Fixed Allocator Test to use DROP_MESSAGE, FutureArg, moved expectations closer to actions, etc From: "Thomas Marshall" To: "Benjamin Hindman" Cc: "Ben Mahler" , "Thomas Marshall" , "mesos" Date: Wed, 10 Apr 2013 18:36:50 -0000 Message-ID: <20130410183650.13808.56017@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Thomas Marshall" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/10329/ X-Sender: "Thomas Marshall" References: <20130407183851.13808.63521@reviews.apache.org> In-Reply-To: <20130407183851.13808.63521@reviews.apache.org> Reply-To: "Thomas Marshall" --===============0867321638976242731== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/10329/ ----------------------------------------------------------- (Updated April 10, 2013, 6:36 p.m.) Review request for mesos and Benjamin Hindman. Changes ------- Updated to Ben's review. I also changed all of the resourcesChanged expectations to be WillRepeatedl= y(DoDefault()). This is to make the tests more robust since the number of t= imes resourcesChanged might get called isn't a hard guarantee depending on = specifics about the slave and the timing of the test, and its not something= that these tests care about anyways. Description ------- See summary. Additionally, I replaced the MockAllocator in DRFAllocatorTest with a regul= ar Allocator because the expectations were uninteresting, expectations on c= alls to the allocator are covered in other tests, and it just made the test= a lot messier. Diffs (updated) ----- src/tests/allocator_tests.cpp 04a8581 = Diff: https://reviews.apache.org/r/10329/diff/ Testing ------- bin/mesos-tests.sh --gtest_filter=3D*AllocatorTest* --gtest_repeat=3D3000 -= -gtest_break_on_failure Thanks, Thomas Marshall --===============0867321638976242731==--