test(media): restore console after SQL diagnostic assertions

This commit is contained in:
evgeny committed 2026-10-24 17:26:11 +02:00
1 parent 6e3be1aaf3
commit 4bfdb1dcc2
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ static void test_announcements(void) {
debug_set_category_level(DEBUG_CATEGORY_MEDIA, DEBUG_LEVEL_INFO);
debug_enable_file_output(logfile, 1);
media_delivery_announce_local_blocks(a);
debug_disable_file_output();
debug_disable_file_output(); debug_enable_console(1);
REQUIRE(fault_injected == 1 && fault_statement == NULL);
int expected = fault == SQL_FINALIZE ? 2 : fault == SQL_STEP_AFTER ? 1 : 0;
REQUIRE(packet_count == expected && sqlite3_next_stmt(a->md.db, NULL) == NULL);