[TEST] Fix wrong logical operator
authorgichan2-jang <gichan2.jang@samsung.com>
Thu, 4 Apr 2024 01:02:16 +0000 (10:02 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 4 Apr 2024 05:56:14 +0000 (14:56 +0900)
Fix wrong logical operator to break the loop.

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
tests/capi/unittest_capi_service_extension.cc

index d696a3b..16d7000 100755 (executable)
@@ -228,7 +228,7 @@ _extension_test_add (ml_service_h handle, gboolean is_pipeline)
   tried = 0;
   do {
     g_usleep (30000U);
-  } while (tdata->received < 3 || tried++ < 10);
+  } while (tdata->received < 3 && tried++ < 10);
 
   EXPECT_TRUE (tdata->received > 0);
 
@@ -384,7 +384,7 @@ _extension_test_imgclf (ml_service_h handle, gboolean is_pipeline)
   tried = 0;
   do {
     g_usleep (30000U);
-  } while (tdata->received < 3 || tried++ < 10);
+  } while (tdata->received < 3 && tried++ < 10);
 
   EXPECT_TRUE (tdata->received > 0);