Browse Source

[1462] recovered another ixfr-to-axfr test case.

JINMEI Tatuya 13 years ago
parent
commit
8c0f14ccee
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/bin/xfrout/tests/xfrout_test.py.in

+ 3 - 3
src/bin/xfrout/tests/xfrout_test.py.in

@@ -1089,12 +1089,12 @@ class TestXfroutSessionWithSQLite3(TestXfroutSessionBase):
 
     def test_ixfr_to_axfr(self):
         self.xfrsess._request_data = \
-             self.create_request_data(ixfr=2000000000)
+            self.create_request_data(ixfr=IXFR_NG_VERSION)
         XfroutSession._handle(self.xfrsess)
         response = self.sock.read_msg(Message.PRESERVE_ORDER);
         self.assertEqual(Rcode.NOERROR(), response.get_rcode())
-        # The SOA serial is greater than that of requested one.
-        # So only the SOA was send.
+        # This is an AXFR-style IXFR.  So the question section should indicate
+        # that it's an IXFR resposne.
         self.assertEqual(RRType.IXFR(), response.get_question()[0].get_type())
         self.check_axfr_stream(response)