From 678f18f18b1ae37167a138efeed71e0756fb49cc Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Fri, 5 Jun 2015 19:05:22 +0300 Subject: [PATCH] server: Fixing a test to stop after several attempts instead of looping infinitely --- .../org/openqa/grid/internal/DefaultToFIFOPriorityTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/server/test/org/openqa/grid/internal/DefaultToFIFOPriorityTest.java b/java/server/test/org/openqa/grid/internal/DefaultToFIFOPriorityTest.java index 3c6a497b87203..e1f768ebbcd56 100644 --- a/java/server/test/org/openqa/grid/internal/DefaultToFIFOPriorityTest.java +++ b/java/server/test/org/openqa/grid/internal/DefaultToFIFOPriorityTest.java @@ -106,7 +106,7 @@ public void validateRequestAreHandledFIFO() throws InterruptedException { requests.get(0).getSession(); break; } catch (Throwable e) { - // ignore. + cpt++; } Thread.sleep(250); }