Merge pull request #4650 from thiagomacieira/fiz-zlib-bad-assumption-1.1

Fix zlib bad assumption
This commit is contained in:
TW 2019-06-28 19:28:30 +02:00 committed by GitHub
commit e1b4c1d27b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,8 @@ class HashIndexDataTestCase(BaseTestCase):
idx1[H(2)] = 2**31 - 1, 0, 0
idx1[H(3)] = 4294962296, 0, 0 # 4294962296 is -5000 interpreted as an uint32_t
assert self._serialize_hashindex(idx1) == self.HASHINDEX
serialized = self._serialize_hashindex(idx1)
assert self._unpack(serialized) == self._unpack(self.HASHINDEX)
def test_read_known_good(self):
idx1 = self._deserialize_hashindex(self.HASHINDEX)