BIND10 bundyfork, updated. 1903d36b26541c22fb8613b12b01c5d9f0f72866 [bundyfork] fix test that relies on ordering of internal data structure.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Apr 24 19:18:59 UTC 2014


The branch, bundyfork has been updated
       via  1903d36b26541c22fb8613b12b01c5d9f0f72866 (commit)
      from  b92fdc1364002657ecb1a22a00ffb5ac0388ef84 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1903d36b26541c22fb8613b12b01c5d9f0f72866
Author: Shane Kerr <shane at time-travellers.org>
Date:   Thu Apr 24 21:18:32 2014 +0200

    [bundyfork] fix test that relies on ordering of internal data structure.
    
    We seem to be relying on the order of data returned, which is not always
    guaranteed. My guess is that this is some sort of hash, and that the
    most recent version of Python returns these in more random order to
    prevent dictionary collision attacks (different each run of a program).

-----------------------------------------------------------------------

Summary of changes:
 src/bin/memmgr/tests/memmgr_test.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/bin/memmgr/tests/memmgr_test.py b/src/bin/memmgr/tests/memmgr_test.py
index e746ae9..80c334c 100755
--- a/src/bin/memmgr/tests/memmgr_test.py
+++ b/src/bin/memmgr/tests/memmgr_test.py
@@ -384,7 +384,9 @@ class TestMemmgr(unittest.TestCase):
         self.__mgr._init_segments(dsrc_info)
 
         # all readers should have been added to the segment(s).
-        self.assertEqual(['reader1', 'reader2'], sgmt_info.added_readers)
+        added_readers = sgmt_info.added_readers
+        added_readers.sort()
+        self.assertEqual(['reader1', 'reader2'], added_readers)
 
         # The event was pushed into the segment info
         command = ('load', None, dsrc_info, bundy.dns.RRClass.IN, 'name')



More information about the bind10-changes mailing list