You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/06/07 10:22:07 UTC
[camel] branch master updated: Make Dropbox tests more stable
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new f9db44c Make Dropbox tests more stable
f9db44c is described below
commit f9db44c588df8ee3820c9f7a7095e130c282e46d
Author: Jan <jb...@redhat.com>
AuthorDate: Fri Jun 7 07:35:42 2019 +0200
Make Dropbox tests more stable
---
.../camel/component/dropbox/integration/DropboxTestSupport.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/components/camel-dropbox/src/test/java/org/apache/camel/component/dropbox/integration/DropboxTestSupport.java b/components/camel-dropbox/src/test/java/org/apache/camel/component/dropbox/integration/DropboxTestSupport.java
index 9d42a8f..442ff0c 100644
--- a/components/camel-dropbox/src/test/java/org/apache/camel/component/dropbox/integration/DropboxTestSupport.java
+++ b/components/camel-dropbox/src/test/java/org/apache/camel/component/dropbox/integration/DropboxTestSupport.java
@@ -75,10 +75,13 @@ public class DropboxTestSupport extends CamelTestSupport {
protected void createFile(String fileName, String content) throws IOException {
try {
client.files().uploadBuilder(workdir + "/" + fileName).uploadAndFinish(new ByteArrayInputStream(content.getBytes()));
+ //wait some time for synchronization
+ Thread.sleep(1000);
} catch (DbxException e) {
log.info("folder is already created");
+ } catch (InterruptedException e) {
+ log.debug("Waiting for synchronization interrupted.");
}
-
}
protected String getFileContent(String path) throws DbxException, IOException {