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>
try (Pipeline pipe = new Pipeline(desc, null)) {
Thread.sleep(100);
assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, pipe.getState());
+ Thread.sleep(100);
} catch (Exception e) {
fail();
}
Thread.sleep(300);
assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, mPipelineState);
+ Thread.sleep(100);
} catch (Exception e) {
fail();
}
Thread.sleep(300);
assertEquals(NNStreamer.PIPELINE_STATE_PAUSED, pipe.getState());
+ Thread.sleep(100);
} catch (Exception e) {
fail();
}