Skip to content
Snippets Groups Projects
Commit 83944787 authored by pkupczyk's avatar pkupczyk
Browse files

SP-952 / BIS-548 : Novartis: API Access to attachements in dropboxes - improve a wait condition

SVN: 29996
parent d01b209e
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ public class AttachmentsDropboxTest extends SystemTestCase
public void testAttachmentsWithFailure() throws Exception
{
createData("failure");
waitUntilDataSetImportedWithError();
waitUntilDataSetImportedWithError("attachments-test");
assertStreamsReleased(3);
}
......
......@@ -269,7 +269,7 @@ public abstract class SystemTestCase extends AssertJUnit
}
protected void waitUntilDataSetImportedWithError() throws Exception
protected void waitUntilDataSetImportedWithError(String dropboxName) throws Exception
{
final int maxLoops = dataSetImportWaitDurationInSeconds();
......@@ -278,7 +278,7 @@ public abstract class SystemTestCase extends AssertJUnit
Thread.sleep(1000);
String logContent = getLogAppender().getLogContent();
if (logContent.contains("ERROR"))
if (logContent.contains("ERROR") && logContent.contains(dropboxName))
{
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment