Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve reliability of test

  • Loading branch information...
commit 6382c3ab8ae3261f1169fb9d31c2e895f207ba07 1 parent 561881f
@lincolnthree lincolnthree authored
View
7 projects/tests/src/test/java/org/jboss/forge/projects/aesh/NewProjectAeshTest.java
@@ -1,14 +1,12 @@
package org.jboss.forge.projects.aesh;
import java.io.File;
-import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.forge.aesh.ForgeShell;
-import org.jboss.forge.aesh.ShellTests;
import org.jboss.forge.aesh.TestShellConfiguration;
import org.jboss.forge.arquillian.Addon;
import org.jboss.forge.arquillian.Dependencies;
@@ -74,10 +72,7 @@ public void testContainerInjection() throws Exception
streams.getStdIn().write("\n".getBytes());
- Thread.sleep(100);
- ShellTests.waitForCallback(streams.getStdOut(), 10, TimeUnit.SECONDS);
- Thread.sleep(100);
- ShellTests.waitForCallback(streams.getStdOut(), 10, TimeUnit.SECONDS);
+ Thread.sleep(500); // TODO Need some form of synchronous waiting here.
System.out.println("OUT:" + streams.getStdOut().toString());
System.out.println("ERR:" + streams.getStdErr().toString());
Please sign in to comment.
Something went wrong with that request. Please try again.