Looking at file.xml, I guess this is b/c of the autostartup set to false.
The poller has 5000ms hardcoded, so this may explain why you had to wait so
much.

Will address in XD-553


On Thu, Aug 8, 2013 at 12:37 PM, Ilayaperumal Gopinathan <
notifications@github.com> wrote:

> In
> spring-xd-shell/src/test/java/org/springframework/xd/shell/command/MetricsTests.java:
>
> > +		FileSource fileSource = newFileSource(new File(FILE_SOURCE_INPUT_DIR + TEST_STREAM_NAME));
> > +		createFileSourceFVCStream(fileSource, "fromUser");
> > +		copyTweetFiles(fileSource);
> > +		fvc().verifyDefaultExists();
> > +	}
> > +
> > +	@Test
> > +	public void testFieldValueCounterDisplay() throws Exception {
> > +		TreeMap<String, Double> fvcMap = new TreeMap<String, Double>();
> > +		fvcMap.put("BestNoSQL", 1d);
> > +		fvcMap.put("SpringSource", 2d);
> > +		FileSource fileSource = newFileSource(new File(FILE_SOURCE_INPUT_DIR + TEST_STREAM_NAME));
> > +		createFileSourceFVCStream(fileSource, "fromUser");
> > +		copyTweetFiles(fileSource);
> > +		// Wait for some more time to allow the tweets get processed.
> > +		Thread.sleep(10000);
>
> Yes indeed. Somehow I always saw there is a delay in getting all the
> tweets processed. and, there was inconsistent results with multiple test
> runs. Hence, I decided to put this sleep here. but, we should definitely
> revisit.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/SpringSource/spring-xd/pull/197/files#r5654573>
> .
>