diff --git a/src/db.rs b/src/db.rs
index 36353da..8840b82 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -1288,545 +1288,3 @@ impl fmt::Debug for DB {
write!(f, "RocksDB {{ path: {:?} }}", self.path())
}
}
-
-#[test]
-fn test_open_for_read_only() {
- let path = "_rust_rocksdb_test_open_for_read_only";
- {
- let db = DB::open_default(path).unwrap();
- db.put(b"k1", b"v1").unwrap();
- }
- {
- let opts = Options::default();
- let error_if_log_file_exist = false;
- let db = DB::open_for_read_only(&opts, path, error_if_log_file_exist).unwrap();
- assert_eq!(db.get(b"k1").unwrap().unwrap(), b"v1");
- assert!(db.put(b"k2", b"v2").is_err());
- }
- let opts = Options::default();
- assert!(DB::destroy(&opts, path).is_ok());
-}
-
-#[test]
-fn test_open_cf_for_read_only() {
- let path = "_rust_rocksdb_test_open_cf_for_read_only";
- let cfs = vec!["cf1"];
- {
- let mut opts = Options::default();
- opts.create_if_missing(true);
- opts.create_missing_column_families(true);
- let db = DB::open_cf(&opts, path, cfs.clone()).unwrap();
- let cf1 = db.cf_handle("cf1").unwrap();
- db.put_cf(cf1, b"k1", b"v1").unwrap();
- }
- {
- let opts = Options::default();
- let error_if_log_file_exist = false;
- let db = DB::open_cf_for_read_only(&opts, path, cfs, error_if_log_file_exist).unwrap();
- let cf1 = db.cf_handle("cf1").unwrap();
- assert_eq!(db.get_cf(cf1, b"k1").unwrap().unwrap(), b"v1");
- assert!(db.put_cf(cf1, b"k2", b"v2").is_err());
- }
- let opts = Options::default();
- assert!(DB::destroy(&opts, path).is_ok());
-}
-
-#[test]
-fn external() {
- let path = "_rust_rocksdb_externaltest";
- {
- let db = DB::open_default(path).unwrap();
- let p = db.put(b"k1", b"v1111");
- assert!(p.is_ok());
- let r: Result