Author: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Description: Fix ipc test fuzzy failure.
Forwarded: not-needed
Last-Update: 2025-09-14

diff --git a/src/main/test_ipc.c b/src/main/test_ipc.c
index 1ef23f0..9d3c344 100644
--- a/src/main/test_ipc.c
+++ b/src/main/test_ipc.c
@@ -24,6 +24,7 @@
  */
 #include "platform.h"
 #include "extractor.h"
+#include <unistd.h>
 
 /**
  * Return value from main, set to 0 for test to succeed.
@@ -158,6 +159,7 @@ main (int argc, char *argv[])
     fprintf (stderr, "failed to load test plugin\n");
     return 1;
   }
+  usleep(100 * 1000); // 100 ms sleep to give time for plugin to load.
   EXTRACTOR_extract (pl, NULL, buf, sizeof (buf), &process_replies, "main-cls");
   if (0 == ret)
   {
