Fixed test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/90ed5549 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/90ed5549 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/90ed5549 Branch: refs/heads/master Commit: 90ed5549e8e4cc686393a972fea921b9bbe7dbb9 Parents: f18725d Author: Claus Ibsen <davscl...@apache.org> Authored: Mon Apr 4 15:46:37 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Apr 4 15:46:37 2016 +0200 ---------------------------------------------------------------------- .../file/remote/FtpConsumerIdempotentMemoryRefTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/90ed5549/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java ---------------------------------------------------------------------- diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java index 704883e..7524f00 100644 --- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java +++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java @@ -16,8 +16,6 @@ */ package org.apache.camel.component.file.remote; -import java.util.concurrent.TimeUnit; - import org.apache.camel.builder.NotifyBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.impl.JndiRegistry; @@ -57,7 +55,7 @@ public class FtpConsumerIdempotentMemoryRefTest extends FtpServerTestSupport { sendFile(getFtpUrl(), "Hello E", "e.txt"); assertMockEndpointsSatisfied(); - assertTrue(notify.matches(5, TimeUnit.SECONDS)); + assertTrue(notify.matchesMockWaitTime()); assertEquals(5, repo.getCache().size()); assertTrue(repo.contains("a.txt")); @@ -79,7 +77,7 @@ public class FtpConsumerIdempotentMemoryRefTest extends FtpServerTestSupport { sendFile(getFtpUrl(), "Hello G", "g.txt"); assertMockEndpointsSatisfied(); - assertTrue(notify.matches(5, TimeUnit.SECONDS)); + assertTrue(notify.matchesMockWaitTime()); assertEquals(5, repo.getCache().size()); }