From c1f1162787a84abdbc6cbe1717909692fad41261 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 25 Feb 2015 09:09:59 -0800 Subject: Drastic speed up --- test/core/echo/server.c | 3 ++- tools/run_tests/run_tests.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/core/echo/server.c b/test/core/echo/server.c index 3eb6f4345a..bc84645a04 100644 --- a/test/core/echo/server.c +++ b/test/core/echo/server.c @@ -165,7 +165,8 @@ int main(int argc, char **argv) { grpc_completion_queue_shutdown(cq); shutdown_started = 1; } - ev = grpc_completion_queue_next(cq, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1)); + ev = grpc_completion_queue_next( + cq, gpr_time_add(gpr_now(), gpr_time_from_seconds(1))); if (!ev) continue; s = ev->tag; switch (ev->type) { diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 7732466d6e..7c6a050a67 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -232,6 +232,7 @@ class TestCache(object): def finished(self, cmdline, bin_hash): self._last_successful_run[cmdline] = bin_hash + self.save() def dump(self): return [{'cmdline': k, 'hash': v} @@ -286,7 +287,6 @@ if forever: 'All tests are now passing properly', do_newline=True) jobset.message('IDLE', 'No change detected') - test_cache.save() while not have_files_changed(): time.sleep(1) else: @@ -297,5 +297,4 @@ else: jobset.message('SUCCESS', 'All tests passed', do_newline=True) else: jobset.message('FAILED', 'Some tests failed', do_newline=True) - test_cache.save() sys.exit(result) -- cgit v1.2.3