Skip to content

Commit fddc7a2

Browse files
committed
sync test skip insert
1 parent cd355cd commit fddc7a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ int test_init (const char *db_path, int init) {
190190

191191
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM activities;", 0); RCHECK
192192
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM workouts;", 0); RCHECK
193-
char value[UUID_STR_MAXLEN];
193+
/* char value[UUID_STR_MAXLEN];
194194
cloudsync_uuid_v7_string(value, true);
195195
char sql[256];
196196
snprintf(sql, sizeof(sql), "INSERT INTO users (id, name) VALUES ('%s', '%s');", value, value);
197-
rc = db_exec(db, sql); RCHECK
198-
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM users;", 1); RCHECK
197+
rc = db_exec(db, sql); RCHECK */
198+
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM users;", 0); RCHECK
199199
rc = db_print(db, "SELECT cloudsync_network_sync(500, 100);"); RCHECK
200200
rc = db_print(db, "SELECT COUNT(*) as count FROM users;"); RCHECK
201201
rc = db_print(db, "SELECT COUNT(*) as count FROM activities;"); RCHECK

0 commit comments

Comments
 (0)