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

Adapt the CSharpFileEditingTest after latest changes in Csharp language server #10166

Merged
merged 5 commits into from Jun 26, 2018

Conversation

musienko-maxim
Copy link
Contributor

@musienko-maxim musienko-maxim commented Jun 23, 2018

What does this PR do?

What issues does this PR fix or reference?

#9925
@dmytro-ndp @SkorikSergey @Ohrimenko1988

@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jun 23, 2018
@musienko-maxim musienko-maxim changed the title Adapt the CSharpFileEditingTest after latest changes in C sharp language server Adapt the CSharpFileEditingTest after latest changes in Csharp language server Jun 23, 2018
@@ -10,14 +10,16 @@
*/
package org.eclipse.che.selenium.languageserver;

import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.MINIMUM_SEC;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grouping of imports is not good practice.

}

private void reInitLanguageServer() {
private void restoreLanguageServer() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not restoring language server directly here, aren't we?
We are doing something which lead to restoring language server. It's kind of magic which have to be commented clearly, and method name should reflect the magic explicitely.

editor.waitMarkerInPosition(INFO, 2);
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("https://github.com/eclipse/che/issues/10151");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message is unclear.

@benoitf benoitf added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Jun 23, 2018

@AfterMethod
public void restartWorkspace() throws Exception {
if (testWorkspaceServiceClient.getStatus(workspace.getId()).equals(WorkspaceStatus.RUNNING)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if workspace is not running at the moment? It doesn't mean that workspace is restarting at the moment, or language server will be restarted as well, do it?

@musienko-maxim
Copy link
Contributor Author

ci-build

@codenvy-ci
Copy link

Build # 4558 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4558/ to view the results.

@musienko-maxim
Copy link
Contributor Author

ci-build

@codenvy-ci
Copy link

@musienko-maxim musienko-maxim merged commit ef444f9 into master Jun 26, 2018
@musienko-maxim musienko-maxim deleted the CHE-10151 branch June 26, 2018 11:54
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jun 26, 2018
@benoitf benoitf added this to the 6.8.0 milestone Jun 26, 2018
hbhargav pushed a commit to hbhargav/che that referenced this pull request Dec 5, 2018
…ge server (eclipse-che#10166)

* Adapt the test after latest changes for C sharp language server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants