From aa2c6959418392759bce37e25dcd933d26be8984 Mon Sep 17 00:00:00 2001 From: Xuejie Xiao Date: Fri, 8 Feb 2019 20:26:00 +0800 Subject: [PATCH] Use DBPath in PinnableSlice test --- tests/test_pinnable_slice.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_pinnable_slice.rs b/tests/test_pinnable_slice.rs index be3db7a..1ccb875 100644 --- a/tests/test_pinnable_slice.rs +++ b/tests/test_pinnable_slice.rs @@ -1,14 +1,16 @@ extern crate rocksdb; +mod util; use rocksdb::{Options, DB}; +use util::DBPath; #[test] fn test_pinnable_slice() { - let path = "_rust_rocksdb_pinnable_slice_test"; + let path = DBPath::new("_rust_rocksdb_pinnable_slice_test"); let mut opts = Options::default(); opts.create_if_missing(true); - let db = DB::open(&opts, path).unwrap(); + let db = DB::open(&opts, &path).unwrap(); db.put(b"k1", b"value12345").unwrap();