]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2262 in SNORT/snort3 from ~ANTOROZC/snort3:host_cache_test to...
authorMichael Altizer (mialtize) <mialtize@cisco.com>
Fri, 12 Jun 2020 15:15:54 +0000 (15:15 +0000)
committerMichael Altizer (mialtize) <mialtize@cisco.com>
Fri, 12 Jun 2020 15:15:54 +0000 (15:15 +0000)
Squashed commit of the following:

commit 0a9d6e442c842dd4c3e16dfbee2c102bd2d90d35
Author: Brian Morris <bmorris2@cisco.com>
Date:   Fri Jun 12 09:56:21 2020 -0400

    host_cache: add new peg to module test

src/host_tracker/test/host_cache_module_test.cc

index 649741fdb1f5b1499c635da8bd0ec3c4854f9fd0..d52141c49bb832dd0bb0a242f2a26aeb4999fb4d 100644 (file)
@@ -122,7 +122,8 @@ TEST(host_cache_module, misc)
     CHECK(!strcmp(ht_pegs[3].name, "find_misses"));
     CHECK(!strcmp(ht_pegs[4].name, "reload_prunes"));
     CHECK(!strcmp(ht_pegs[5].name, "removes"));
-    CHECK(!ht_pegs[6].name);
+    CHECK(!strcmp(ht_pegs[6].name, "replaced"));
+    CHECK(!ht_pegs[7].name);
 
     // add 3 entries
     SfIp ip1, ip2, ip3;