Add support for _not_ creating a DB if one does not exist

This commit is contained in:
Dustin J. Mitchell
2022-10-10 15:59:45 +00:00
committed by Tomas Babej
parent 9e5c0001c4
commit 67fc422311
5 changed files with 46 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ static void test_replica_creation(void) {
// creating an on-disk replica does not crash
static void test_replica_creation_disk(void) {
TCReplica *rep = tc_replica_new_on_disk(tc_string_borrow("test-db"), NULL);
TCReplica *rep = tc_replica_new_on_disk(tc_string_borrow("test-db"), true, NULL);
TEST_ASSERT_NOT_NULL(rep);
TEST_ASSERT_NULL(tc_replica_error(rep).ptr);
tc_replica_free(rep);