Skip to content

Commit 04bca1f

Browse files
committed
expect network sync to be gt0
1 parent ac17058 commit 04bca1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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_exec(db, "SELECT cloudsync_network_sync();"); 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)