-
Notifications
You must be signed in to change notification settings - Fork 320
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
[2836] adapt to changes in ltk.refactoring #2900
Conversation
@@ -78,6 +80,11 @@ public void assertLogged(List<String> expectation) { | |||
throw new ComparisonFailure("", expectedEventsDump, eventsDump); | |||
} | |||
} | |||
|
|||
public void assertLogged(String expectation) { | |||
String eventsDump = IterableExtensions.join(events, "\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be String.join
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szarnekow definitely yes :)
I've updated the other occurrences 2a47548
@@ -17,7 +19,6 @@ | |||
import org.eclipse.core.runtime.NullProgressMonitor; | |||
import org.eclipse.core.runtime.Platform; | |||
import org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor; | |||
import org.eclipse.xtext.xbase.lib.IterableExtensions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
+ "Worked 21 (2124.0)\n" | ||
+ "Worked 21 (2145.0)\n" | ||
+ "Worked 21 (2166.0)\n" | ||
+ "Worked 84 (2250.0)\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh gosh this progresss reporting is awful.
41, 20, 84, 41, 41, 125 ...
Anyhow, not our fault.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it is! :'(
At least, by directly comparing strings instead of creating lists of strings, from now on it should be easier to fix it
Closes #2836
I created an easier way to specify the expectation as a string.