From 65b4c9dc8626757f5f7cda279881b059e926916c Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 19:55:33 +0530 Subject: fix: divide-by-zero crash when no WiFi networks configured - Guard tollgate_config_get_next_wifi against network_count=0 - Add fallback parsing for wifi_ssid/wifi_password flat fields - Add heap info to API server failure log for debugging - All 75 unit tests passing --- tests/unit/test_cvm_server | Bin 0 -> 45728 bytes tests/unit/test_geohash | Bin 20776 -> 20784 bytes tests/unit/test_identity | Bin 297880 -> 297888 bytes tests/unit/test_lightning_payout | Bin 20552 -> 20560 bytes tests/unit/test_lnurl_pay | Bin 21304 -> 21312 bytes tests/unit/test_mcp_handler | Bin 38736 -> 63056 bytes tests/unit/test_mint_health | Bin 0 -> 36792 bytes tests/unit/test_nip04 | Bin 298776 -> 298792 bytes tests/unit/test_tollgate_client | Bin 51992 -> 52072 bytes 9 files changed, 0 insertions(+), 0 deletions(-) create mode 100755 tests/unit/test_cvm_server create mode 100755 tests/unit/test_mint_health (limited to 'tests/unit') diff --git a/tests/unit/test_cvm_server b/tests/unit/test_cvm_server new file mode 100755 index 0000000..8f0b605 Binary files /dev/null and b/tests/unit/test_cvm_server differ diff --git a/tests/unit/test_geohash b/tests/unit/test_geohash index dc5045f..46d0e6f 100755 Binary files a/tests/unit/test_geohash and b/tests/unit/test_geohash differ diff --git a/tests/unit/test_identity b/tests/unit/test_identity index 277bb49..d0ff402 100755 Binary files a/tests/unit/test_identity and b/tests/unit/test_identity differ diff --git a/tests/unit/test_lightning_payout b/tests/unit/test_lightning_payout index b10888c..c6aaa5f 100755 Binary files a/tests/unit/test_lightning_payout and b/tests/unit/test_lightning_payout differ diff --git a/tests/unit/test_lnurl_pay b/tests/unit/test_lnurl_pay index 1f16293..61c9743 100755 Binary files a/tests/unit/test_lnurl_pay and b/tests/unit/test_lnurl_pay differ diff --git a/tests/unit/test_mcp_handler b/tests/unit/test_mcp_handler index b5d6a85..a001641 100755 Binary files a/tests/unit/test_mcp_handler and b/tests/unit/test_mcp_handler differ diff --git a/tests/unit/test_mint_health b/tests/unit/test_mint_health new file mode 100755 index 0000000..2a48ad2 Binary files /dev/null and b/tests/unit/test_mint_health differ diff --git a/tests/unit/test_nip04 b/tests/unit/test_nip04 index cb52040..cbf4c80 100755 Binary files a/tests/unit/test_nip04 and b/tests/unit/test_nip04 differ diff --git a/tests/unit/test_tollgate_client b/tests/unit/test_tollgate_client index f9b0f7d..8077223 100755 Binary files a/tests/unit/test_tollgate_client and b/tests/unit/test_tollgate_client differ -- cgit v1.2.3