Skip to content

Commit 5c0efa2

Browse files
committed
add max retry and wait time
1 parent 4d25025 commit 5c0efa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ int test_init (const char *db_path, int init) {
197197
rc = db_exec(db, sql); RCHECK
198198
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM users;", 1); RCHECK
199199
if(init){
200-
rc = db_exec(db, "SELECT cloudsync_network_sync();"); RCHECK
200+
rc = db_exec(db, "SELECT cloudsync_network_sync(500, 50);"); RCHECK
201201
} else { //tofix
202-
rc = db_expect_gt0(db, "SELECT cloudsync_network_sync();"); RCHECK
202+
rc = db_expect_gt0(db, "SELECT cloudsync_network_sync(500, 50);"); RCHECK
203203
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM users;"); RCHECK
204204
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM activities;"); RCHECK
205205
}

0 commit comments

Comments
 (0)