diff mrjunejune/test/integration_test.c @ 168:f3084bca7317

[Misc] Fixed all errors and all tests should pass now.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 16:29:02 -0800
parents 7eb79fd91c7e
children
line wrap: on
line diff
--- a/mrjunejune/test/integration_test.c	Mon Jan 19 16:28:45 2026 -0800
+++ b/mrjunejune/test/integration_test.c	Mon Jan 19 16:29:02 2026 -0800
@@ -286,10 +286,8 @@
   free(file_data);
 
   if (!p_resp || p_resp->status_code != 200) {
-    printf("    ✗ Conversion failed with status: %d\n", p_resp ? p_resp->status_code : 0);
+    printf("    ✗ Conversion failed with status: %d, %s\n", p_resp ? p_resp->status_code : 0, p_resp->body);
     if (p_resp) Seobeo_Client_Response_Destroy(p_resp);
-
-    Seobeo_Client_Response_Destroy(p_resp);
     Seobeo_Client_Request_Destroy(p_req);
     return -1;
   }
@@ -307,6 +305,7 @@
   Seobeo_Client_Response_Destroy(p_resp);
   Seobeo_Client_Request_Destroy(p_req);
 
+  usleep(100000);
   printf("    → Testing download: GET %s\n", download_url_path);
   char full_download_url[1024];
   snprintf(full_download_url, sizeof(full_download_url), "%s%s", TEST_URL, download_url_path);
@@ -317,6 +316,7 @@
   if (!p_resp || p_resp->status_code != 200)
   {
     printf("    ✗ Download failed\n");
+    printf("%s\n", p_resp->body);
     if (p_resp) Seobeo_Client_Response_Destroy(p_resp);
     Seobeo_Client_Request_Destroy(p_req);
     return -1;