From b59d5f42d5bf7e8fa88cdc5c9c50b203969c4ee2 Mon Sep 17 00:00:00 2001 From: Szabolcs Fruhwald Date: Tue, 2 May 2017 17:39:31 -0700 Subject: [PATCH] Fix flaky HeartbeatHandlerTest (use a bit higher timeout than task's actual) --- test/com/google/enterprise/adaptor/HeartbeatHandlerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/com/google/enterprise/adaptor/HeartbeatHandlerTest.java b/test/com/google/enterprise/adaptor/HeartbeatHandlerTest.java index 91122976..61857a9a 100644 --- a/test/com/google/enterprise/adaptor/HeartbeatHandlerTest.java +++ b/test/com/google/enterprise/adaptor/HeartbeatHandlerTest.java @@ -288,11 +288,12 @@ public void getDocContent(Request request, Response response) .setAdaptor(mockAdaptor) .setAuthzAuthority(mockAdaptor) .setWatchdog(watchdog) - .setHeaderTimeoutMillis(100) - .setContentTimeoutMillis(100) + .setHeaderTimeoutMillis(150) + .setContentTimeoutMillis(150) .build(); HeartbeatHandler handler = createHeartbeatHandlerBuilder() .setWatchdog(watchdog2).setDocHandler(docHandler) + .setTimeoutMillis(150) .build(); try { handler.handle(ex);