Skip to content

Commit 118955e

Browse files
committed
test: update PEERS count and modify cloudsync_network_sync parameters
1 parent cd21eeb commit 118955e

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
@@ -16,7 +16,7 @@
1616
#include <pthread.h>
1717
#endif
1818

19-
#define PEERS 5
19+
#define PEERS 50
2020
#define DB_PATH "health-track.sqlite"
2121
#define EXT_PATH "./dist/cloudsync"
2222
#define RCHECK if (rc != SQLITE_OK) goto abort_test;
@@ -196,7 +196,7 @@ int test_init (const char *db_path, int init) {
196196
snprintf(sql, sizeof(sql), "INSERT INTO users (id, name) VALUES ('%s', '%s');", value, value);
197197
rc = db_exec(db, sql); RCHECK
198198
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM users;", 1); RCHECK
199-
rc = db_expect_gt0(db, "SELECT cloudsync_network_sync(500, 100);"); RCHECK
199+
rc = db_expect_gt0(db, "SELECT cloudsync_network_sync();"); RCHECK
200200
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM users;"); RCHECK
201201
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM activities;"); RCHECK
202202
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM workouts;", 0); RCHECK

0 commit comments

Comments
 (0)