testing: memstat --analyze=latency
authorMichael Wallner <mike@php.net>
Tue, 20 Oct 2020 17:04:09 +0000 (19:04 +0200)
committerMichael Wallner <mike@php.net>
Tue, 20 Oct 2020 17:04:09 +0000 (19:04 +0200)
test/tests/bin/memstat.cpp

index 431d1ce7552911113e5ca7ff0ad8f522f46c7638..6d43003a12c052f43ce88e3ae77237aa29760ed9 100644 (file)
@@ -56,6 +56,11 @@ TEST_CASE("bin/memstat") {
         REQUIRE(sh.run(comm + "--analyze", output));
         REQUIRE_THAT(output, Contains("Number of Servers Analyzed         : 2"));
       }
+      SECTION("analyze=latency") {
+        string output;
+        REQUIRE(sh.run(comm + "--analyze=latency", output));
+        REQUIRE_THAT(output, Contains("Network Latency Test:"));
+      }
     }
 
     SECTION("connection failure") {