Skip to content

Commit 91b5e0e

Browse files
committed
to fix test
1 parent 946cec2 commit 91b5e0e

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
@@ -194,11 +194,11 @@ int test_init (const char *db_path, int init) {
194194
rc = db_expect_int(db, "SELECT COUNT(*) as count FROM users;", 1); RCHECK
195195
if(init){
196196
rc = db_exec(db, "SELECT cloudsync_network_sync();"); RCHECK
197+
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM users;"); RCHECK //tofix
198+
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM activities;"); RCHECK //tofix
197199
} else {
198200
rc = db_expect_gt0(db, "SELECT cloudsync_network_sync();"); RCHECK
199201
}
200-
rc = db_expect_gt0(db, "SELECT COUNT(*) as count FROM users;"); RCHECK
201-
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
203203
rc = db_exec(db, "SELECT cloudsync_terminate();");
204204

0 commit comments

Comments
 (0)