-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Fix various test bugs seen when running on Windows #6029
Conversation
@@ -194,7 +194,7 @@ public void startPlugin(PluginWrapper plugin) throws Exception { | |||
// plugins should be already visible in the UberClassLoader | |||
assertFalse(activePlugins.isEmpty()); | |||
|
|||
uberClassLoader.loadClass("hudson.plugins.tasks.Messages"); | |||
assertNotNull(uberClassLoader.loadClass("htmlpublisher.HtmlPublisher")); |
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.
I unintentionally broke this test in commit 1b2ca8a by switching from tasks.jpi
to htmlpublisher.jpi
without updating the corresponding class name, but we never noticed because the return value is ignored. I fixed the return value problem by asserting that the value is not null, which would have exposed the original problem in the first place.
@@ -45,12 +46,11 @@ | |||
public JenkinsRule j = new JenkinsRule(); | |||
|
|||
@Test | |||
@WithPlugin("credentials.hpi") |
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.
We no longer bundle credentials
as a detached plugin as of commit commit c6f061f, which this test wanted. Fortunately, there's a credentials.hpi
in the source tree, so we can get the same effect with a @WithPlugin
annotation.
6b716c9
to
d48d70d
Compare
This PR was tested successfully in a passing Windows CI run in #6024. |
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
Fixes various minor bugs discovered in tests while running on Windows.
Proposed changelog entries
N/A
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).