1 parent 6df8b9a commit 36addb0Copy full SHA for 36addb0
1 file changed
test/db.cpp
@@ -214,7 +214,12 @@ TEST(DB, sqlite_encryption_migrate) {
214
}
215
write_file(path, base64_decode(Slice(sqlite_sample_db, sqlite_sample_db_size)).move_as_ok()).ensure();
216
{
217
- auto db = SqliteDb::open_with_key(path, cucumber).move_as_ok();
+ auto r_db = SqliteDb::open_with_key(path, cucumber);
218
+ if (r_db.is_error()) {
219
+ LOG(ERROR) << r_db.error();
220
+ return;
221
+ }
222
+ auto db = r_db.move_as_ok();
223
auto kv = SqliteKeyValue();
224
auto status = kv.init_with_connection(db.clone(), "kv");
225
if (status.is_error()) {
0 commit comments