Browse Source

[stats_lettuce_fix] fix for the lettuce error: Not found statistics counter notifyoutv4

http://git.bind10.isc.org/~tester/builder//BIND10-lettuce/20120918121701-DebianLinux-x86_64-GCC/logs/lettuce.out
  AssertionError: Not found statistics counter notifyoutv4 for zone example.org.

Added waiting until the last requesting is finished instead of one-second
sleep. It should be done before checking the result of "Stats show" command via
bindctl.
Naoki Kambe 12 years ago
parent
commit
583710591b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      tests/lettuce/features/xfrin_notify_handling.feature

+ 10 - 2
tests/lettuce/features/xfrin_notify_handling.feature

@@ -49,9 +49,13 @@ Feature: Xfrin incoming notify handling
     #
     # check for statistics change
     #
+
+    # wait until the last stats requesting is finished
+    wait for new master stderr message STATS_SEND_STATISTICS_REQUEST
+    wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
+
     When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
     last bindctl output should not contain "error"
-    Then wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     The counter notifyoutv4 for the zone _SERVER_ should be 0
     The counter notifyoutv4 for the zone example.org. should be 0
     The counter notifyoutv6 for the zone _SERVER_ should be 5
@@ -123,9 +127,13 @@ Feature: Xfrin incoming notify handling
     #
     # check for statistics change
     #
+
+    # wait until the last stats requesting is finished
+    wait for new master stderr message STATS_SEND_STATISTICS_REQUEST
+    wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
+
     When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
     last bindctl output should not contain "error"
-    Then wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     The counter notifyoutv4 for the zone _SERVER_ should be 0
     The counter notifyoutv4 for the zone example.org. should be 0
     The counter notifyoutv6 for the zone _SERVER_ should be 5