Make sure server start up before test. am: 9dc58f9768

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/tools/hidl/+/15420961

Change-Id: I6c8c968d6203b375c6cf24f7e11eaf2108666cee
diff --git a/test/java_test/hidl_test_java.py b/test/java_test/hidl_test_java.py
index 2a5d8b3..ccafd88 100644
--- a/test/java_test/hidl_test_java.py
+++ b/test/java_test/hidl_test_java.py
@@ -18,6 +18,7 @@
 import os
 import subprocess
 import unittest
+import time
 
 def run_cmd(cmd, ignore_error=False):
     print("Running command:", cmd)
@@ -42,6 +43,7 @@
             cleanup(client)
             cleanup(server)
             run_cmd("adb shell \"( %s %s -s ) </dev/null >/dev/null 2>&1 &\"" % (env, server))
+            time.sleep(2)
             run_cmd("adb shell %s %s -c" % (env, client))
         finally:
             cleanup(client)