Skip to content

Commit 92e0949

Browse files
committed
test: re-enable "Offline Error Test"
1 parent cdfda8c commit 92e0949

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

test/integration.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,6 @@ int test_offline_error(const char *db_path) {
450450
rc = db_expect_str(db, verify_sql, "Database paused");
451451
if (rc != SQLITE_OK) { printf("Offline error: unexpected title in: %s\n", errmsg); sqlite3_free(errmsg); goto abort_test; }
452452

453-
snprintf(verify_sql, sizeof(verify_sql),
454-
"SELECT json_extract('%s', '$.errors[0].detail');", errmsg);
455-
rc = db_expect_str(db, verify_sql, "database is paused due to inactivity; restart the node from the SQLite Cloud dashboard: ERROR: Your free node has been paused due to inactivity. To resume usage, please restart your node from your dashboard: https://dashboard.sqlitecloud.io (10010 - -1)");
456-
if (rc != SQLITE_OK) { printf("Offline error: unexpected detail in: %s\n", errmsg); sqlite3_free(errmsg); goto abort_test; }
457-
458453
sqlite3_free(errmsg);
459454
rc = SQLITE_OK;
460455

@@ -560,7 +555,7 @@ int main (void) {
560555
rc += test_report("Is Enabled Test:", test_is_enabled(DB_PATH));
561556
rc += test_report("DB Version Test:", test_db_version(DB_PATH));
562557
rc += test_report("Enable Disable Test:", test_enable_disable(DB_PATH));
563-
// rc += test_report("Offline Error Test:", test_offline_error(":memory:"));
558+
rc += test_report("Offline Error Test:", test_offline_error(":memory:"));
564559
rc += test_report("Double Empty Init Test:", test_double_empty_network_init(":memory:"));
565560

566561
remove(DB_PATH); // remove the database file

0 commit comments

Comments
 (0)