Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add try/catch to the "TestWorkspaceServiceClient" for catching bug with "whitescreen" #8353

Merged
merged 8 commits into from
Jan 19, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.eclipse.che.selenium.core.workspace.MemoryMeasure;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.Assert;

/**
* @author Musienko Maxim
Expand Down Expand Up @@ -219,7 +220,13 @@ public void sendStartRequest(String workspaceId, String workspaceName) throws Ex
public void start(String workspaceId, String workspaceName, TestUser workspaceOwner)
throws Exception {
sendStartRequest(workspaceId, workspaceName);
waitStatus(workspaceName, workspaceOwner.getName(), RUNNING);

try {
waitStatus(workspaceName, workspaceOwner.getName(), RUNNING);
} catch (IllegalStateException ex) {
// Remove try-catch block after issue has been resolved
Assert.fail("Known issue https://github.com/eclipse/che/issues/8031");
}
}

/** Gets workspace by its id. */
Expand Down