This is an automated email from the ASF dual-hosted git repository.

qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new a32fd27  Updated 3 unit tests by changing IO switchboard to local mode.
a32fd27 is described below

commit a32fd275e8e66fff54e0a3526298ba7bfcec39b1
Author: Qian Zhang <zhq527...@gmail.com>
AuthorDate: Sun Jul 14 18:44:01 2019 +0800

    Updated 3 unit tests by changing IO switchboard to local mode.
    
    This will speed up these unit tests because in local mode we will not
    launch an IO switchboard server for container, otherwise it would take
    at least 5 more seconds for these unit tests to complete since we need
    to wait for IO switchboard server to terminate.
---
 src/tests/containerizer/isolator_tests.cpp                   | 2 +-
 src/tests/containerizer/nested_mesos_containerizer_tests.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tests/containerizer/isolator_tests.cpp 
b/src/tests/containerizer/isolator_tests.cpp
index a769bc5..a493a30 100644
--- a/src/tests/containerizer/isolator_tests.cpp
+++ b/src/tests/containerizer/isolator_tests.cpp
@@ -98,7 +98,7 @@ public:
     fetcher.reset(new Fetcher(flags));
 
     Try<MesosContainerizer*> _containerizer =
-      MesosContainerizer::create(flags, false, fetcher.get());
+      MesosContainerizer::create(flags, true, fetcher.get());
 
     if (_containerizer.isError()) {
       return Error(_containerizer.error());
diff --git a/src/tests/containerizer/nested_mesos_containerizer_tests.cpp 
b/src/tests/containerizer/nested_mesos_containerizer_tests.cpp
index bbf83fa..c6f96e6 100644
--- a/src/tests/containerizer/nested_mesos_containerizer_tests.cpp
+++ b/src/tests/containerizer/nested_mesos_containerizer_tests.cpp
@@ -256,7 +256,7 @@ TEST_F(NestedMesosContainerizerTest,
 
   Try<MesosContainerizer*> create = MesosContainerizer::create(
       flags,
-      false,
+      true,
       &fetcher);
 
   ASSERT_SOME(create);
@@ -530,7 +530,7 @@ TEST_F(NestedMesosContainerizerTest,
 
   Try<MesosContainerizer*> create = MesosContainerizer::create(
       flags,
-      false,
+      true,
       &fetcher);
 
   ASSERT_SOME(create);

Reply via email to