diff --git a/src/db.rs b/src/db.rs index bed2769..4f155ff 100644 --- a/src/db.rs +++ b/src/db.rs @@ -679,7 +679,7 @@ impl DB { DB::open_cf_descriptors(opts, path, cfs) } - /// Open a database with the given database options and column family names/options. + /// Open a database with the given database options and column family descriptors. pub fn open_cf_descriptors
( opts: &Options, path: P, diff --git a/tests/test_column_family.rs b/tests/test_column_family.rs index b7bbef6..c9c44f2 100644 --- a/tests/test_column_family.rs +++ b/tests/test_column_family.rs @@ -100,12 +100,7 @@ fn test_can_open_db_with_results_of_list_cf() { let db = DB::open(&opts, &n).unwrap(); let opts = Options::default(); - match db.create_cf("cf1", &opts) { - Ok(_db) => println!("cf1 created successfully"), - Err(e) => { - panic!("could not create column family: {}", e); - } - } + assert!(db.create_cf("cf1", &opts).is_ok()); } {