[Android/Test] tc fail case
authorJaeyun <jy1210.jung@samsung.com>
Mon, 30 Sep 2019 04:11:13 +0000 (13:11 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 1 Oct 2019 04:19:58 +0000 (13:19 +0900)
Sometimes testcase failed with pipeline state NULL when stopping the pipeline.
Add sleep time before closing the pipeline.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
api/android/api/src/androidTest/java/org/nnsuite/nnstreamer/APITestPipeline.java

index f69620a..aed897a 100644 (file)
@@ -86,6 +86,7 @@ public class APITestPipeline {
         try (Pipeline pipe = new Pipeline(desc, null)) {
             Thread.sleep(100);
             assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, pipe.getState());
+            Thread.sleep(100);
         } catch (Exception e) {
             fail();
         }
@@ -119,6 +120,7 @@ public class APITestPipeline {
             Thread.sleep(300);
 
             assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, mPipelineState);
+            Thread.sleep(100);
         } catch (Exception e) {
             fail();
         }
@@ -141,6 +143,7 @@ public class APITestPipeline {
             Thread.sleep(300);
 
             assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, pipe.getState());
+            Thread.sleep(100);
         } catch (Exception e) {
             fail();
         }