From ceb5744c51d83d256d94bb317ef91fa13ffde9ce Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Mon, 4 Feb 2019 09:42:17 -0600 Subject: [PATCH] Implementing review feedback... --- src/db.rs | 2 +- tests/test_column_family.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) 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()); } {