Skip to content

Commit

Permalink
Add try/catch to the "TestWorkspaceServiceClient" for catching bug wi…
Browse files Browse the repository at this point in the history
…th "whitescreen" (#8353)
  • Loading branch information
Ohrimenko1988 committed Jan 19, 2018
1 parent 7d5dc07 commit 2c29925
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,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 @@ -210,7 +211,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

0 comments on commit 2c29925

Please sign in to comment.