From dbcca72ce6d495341496edbc04e69e96bc35215f Mon Sep 17 00:00:00 2001 From: Martin Ek Date: Fri, 6 Apr 2018 14:59:16 +0200 Subject: [PATCH] Clean-up after test_prefix_iterator --- tests/test_iterator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_iterator.rs b/tests/test_iterator.rs index 5f8b1bb..ef7a7bd 100644 --- a/tests/test_iterator.rs +++ b/tests/test_iterator.rs @@ -171,7 +171,7 @@ pub fn test_prefix_iterator() { let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(3); let mut opts = Options::default(); - opts.create_if_missing(true); + opts.create_if_missing(true); opts.set_prefix_extractor(prefix_extractor); let db = DB::open(&opts, path).unwrap(); @@ -193,6 +193,8 @@ pub fn test_prefix_iterator() { assert_eq!(b_iterator.collect::>(), expected) } } + let opts = Options::default(); + assert!(DB::destroy(&opts, path).is_ok()); } #[test]