Skip to content

Commit da7ffb5

Browse files
committed
test: disable deprecated tests
1 parent e4390fb commit da7ffb5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ int main (void) {
465465
rc += test_report("Is Enabled Test:", test_is_enabled(DB_PATH));
466466
rc += test_report("DB Version Test:", test_db_version(DB_PATH));
467467
rc += test_report("Enable Disable Test:", test_enable_disable(DB_PATH));
468-
rc += test_report("Offline Error Test:", test_offline_error(":memory:"));
468+
// rc += test_report("Offline Error Test:", test_offline_error(":memory:"));
469469
rc += test_report("Double Empty Init Test:", test_double_empty_network_init(":memory:"));
470470

471471
remove(DB_PATH); // remove the database file

test/unit.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2985,6 +2985,8 @@ bool do_test_insert_cloudsync_changes (bool print_result, bool cleanup_databases
29852985
return result;
29862986
}
29872987

2988+
#define SKIP_SCHEMA_CHECK 1
2989+
29882990
bool do_test_merge_alter_schema_1 (int nclients, bool print_result, bool cleanup_databases, bool only_locals) {
29892991
sqlite3 *db[MAX_SIMULATED_CLIENTS] = {NULL};
29902992
bool result = false;
@@ -3024,10 +3026,12 @@ bool do_test_merge_alter_schema_1 (int nclients, bool print_result, bool cleanup
30243026
// insert, update and delete some data in the first client
30253027
do_insert(db[0], TEST_PRIKEYS, NINSERT, print_result);
30263028

3029+
#ifndef SKIP_SCHEMA_CHECK
30273030
// merge changes from db0 to db1, it should fail because db0 has a newer schema hash
30283031
if (do_merge_using_payload(db[0], db[1], only_locals, false) == true) {
30293032
return false;
30303033
}
3034+
#endif
30313035

30323036
// augment TEST_NOCOLS also on db1
30333037
if (do_augment_tables(TEST_NOCOLS, db[1], table_algo_crdt_cls) == false) {
@@ -3115,11 +3119,13 @@ bool do_test_merge_alter_schema_2 (int nclients, bool print_result, bool cleanup
31153119
if (do_alter_tables(table_mask, db[0], 4) == false) {
31163120
goto finalize;
31173121
}
3118-
3122+
3123+
#ifndef SKIP_SCHEMA_CHECK
31193124
// merge changes from db0 to db1, it should fail because db0 has a newer schema hash
31203125
if (do_merge_using_payload(db[0], db[1], only_locals, false) == true) {
31213126
goto finalize;
31223127
}
3128+
#endif
31233129

31243130
// insert a new value on db1
31253131
do_insert_val(db[1], TEST_PRIKEYS, 123456, print_result);

0 commit comments

Comments
 (0)