func testCreateStore(c *C) *Store { base := fmt.Sprintf("/tmp/test_qdb/test_store") err := os.RemoveAll(base) c.Assert(err, IsNil) err = os.MkdirAll(base, 0700) c.Assert(err, IsNil) conf := rocksdb.NewDefaultConfig() testdb, err := rocksdb.Open(path.Join(base, "db"), conf, false) c.Assert(err, IsNil) s := New(testdb) return s }
func (s *testEngineSuite) TestRocksDB(c *C) { s.test(c, "rocksdb", rocksdb.NewDefaultConfig()) }