Skip to content

Commit

Permalink
Merge pull request twmht#12 from gmossessian/feature-fixSnappyCompres…
Browse files Browse the repository at this point in the history
…sionTest

allow snappy_compression as a default option in test_options.py::TestOptions::test_simple
  • Loading branch information
twmht authored Feb 15, 2018
2 parents 272ec9a + 4d18d4b commit c32d401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rocksdb/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def test_simple(self):
opts.comparator,
rocksdb.BytewiseComparator)

self.assertEqual(rocksdb.CompressionType.snappy_compression, opts.compression)
self.assertIn(opts.compression,
(rocksdb.CompressionType.no_compression,
rocksdb.CompressionType.snappy_compression))

opts.compression = rocksdb.CompressionType.zstd_compression
self.assertEqual(rocksdb.CompressionType.zstd_compression, opts.compression)
Expand Down

0 comments on commit c32d401

Please sign in to comment.