summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowki <paul.kocialkowski@linux.intel.com>2017-06-26 16:59:02 +0300
committerLyude <lyude@redhat.com>2017-06-26 17:35:58 -0400
commit8d300218439724551873b5ab46b270ecc17f290d (patch)
treeb4e65d0fbdf94addb7029ef01c0eb0cc4ae921e4
parenta22b4b12cc61a842d92503951cbc2c7c607fa8dd (diff)
tests/chamelium: Use 50 ms delay to wait for connector change
Using a 1 s delay seems too large for detecting a connector change, that may happen faster than this. Since the constraints on execution time are high, it is preferable to use a much smaller sleep time. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
-rw-r--r--tests/chamelium.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chamelium.c b/tests/chamelium.c
index 6079303a..f1addb0f 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -134,7 +134,7 @@ wait_for_connector(data_t *data, struct chamelium_port *port,
return;
}
- sleep(1);
+ usleep(50000);
}
igt_assert(finished);