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

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

commit b0d8d3056ec2f2bc87786d712492c502ec8ee755
Author: Jason Zhou <[email protected]>
AuthorDate: Mon Jun 10 18:54:49 2024 -0400

    [port_mapping] Fix SmallEgressLimit test.
    
    The test was previously failing as it was timing the echo rather
    than ncat. This fix measures the time that ncat takes so that the
    elapsed time does not display as 0s and fail the test.
    
    Review: https://reviews.apache.org/r/75044/
---
 src/tests/containerizer/port_mapping_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/containerizer/port_mapping_tests.cpp 
b/src/tests/containerizer/port_mapping_tests.cpp
index 12d4626ca..44950acb0 100644
--- a/src/tests/containerizer/port_mapping_tests.cpp
+++ b/src/tests/containerizer/port_mapping_tests.cpp
@@ -1568,7 +1568,7 @@ TEST_F(PortMappingIsolatorTest, ROOT_NC_SmallEgressLimit)
            << " bytes of data under egress rate limit " << rate.bytes()
            << "Bytes/s...';";
 
-  command2 << "{ time -p echo " << data << " | nc localhost "
+  command2 << "{ echo " << data << " | time -p nc localhost "
            << invalidPort << " ; } 2> " << transmissionTime << " && ";
 
   // Touch the guard file.

Reply via email to