Author: struberg
Date: Wed Jun 14 12:18:00 2017
New Revision: 1798671
URL: http://svn.apache.org/viewvc?rev=1798671&view=rev
Log:
fix WatcherTest which randomly fails
On my Mac and also on Fedora 25 it takes up to 8 seconds to pick up the changes.
That might have something to do with the granularity and behaviour of the
underlying
file system.
Increasing the wait time to 10 seconds did help.
Modified:
openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/WatcherTest.java
Modified:
openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/WatcherTest.java
URL:
http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/WatcherTest.java?rev=1798671&r1=1798670&r2=1798671&view=diff
==============================================================================
---
openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/WatcherTest.java
(original)
+++
openwebbeans/meecrowave/trunk/meecrowave-core/src/test/java/org/apache/meecrowave/WatcherTest.java
Wed Jun 14 12:18:00 2017
@@ -57,7 +57,7 @@ public class WatcherTest {
// now replace it by "replaced", not we don't reload classes
yet so we just check we redeployed, should we integ with fakereplace?
new
File(bouncedFile).setLastModified(System.currentTimeMillis());
- long max = 5000 /* deployment max */ + 250 /* bouncing */ * 4
/* wait in watcher + 3 loops in bouncer */;
+ long max = 15000 /* deployment max */ + 250 /* bouncing */ * 4
/* wait in watcher + 3 loops in bouncer */;
while (max > 0) {
try {
Thread.sleep(1000);