Skip to content

Commit

Permalink
[JENKINS-40624] Fix test case, miss to remove assert on environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nfalco79 committed Feb 7, 2017
1 parent 7747247 commit 15db7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -11,6 +11,7 @@
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.EnvVars;
import hudson.Extension;
import hudson.Util;
Expand All @@ -33,8 +34,10 @@
* @author Nikolas Falco
*/
@SuppressWarnings("serial")
@SuppressFBWarnings(value = "SE_NO_SERIALVERSIONID")
public class NodeJSInstallation extends ToolInstallation implements EnvironmentSpecific<NodeJSInstallation>, NodeSpecific<NodeJSInstallation> {

@SuppressFBWarnings(value = "SE_TRANSIENT_FIELD_NOT_RESTORED", justification = "calculate at runtime, its value depends on the OS where it run")
private final transient Platform platform;

@DataBoundConstructor
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/jenkins/plugins/nodejs/NpmrcFileSupplyTest.java
Expand Up @@ -58,8 +58,6 @@ public void test_supply_npmrc_with_registry() throws Exception {
Npmrc npmrc = Npmrc.load(new File(npmrcFile.getRemote()));
assertTrue("Missing setting email", npmrc.contains("email"));
assertEquals("Unexpected value from settings email", "guest@example.com", npmrc.get("email"));

assertFalse("No environment found", enviroments.isEmpty());
}

private StandardUsernameCredentials createUser(String id, String username, String password) {
Expand Down

0 comments on commit 15db7f5

Please sign in to comment.