Skip to content

Commit

Permalink
[JENKINS-21486] Only consider plugins detached before the current
Browse files Browse the repository at this point in the history
version
  • Loading branch information
Vlatombe committed Jul 29, 2016
1 parent 8e3c9da commit dff8e80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/src/test/java/hudson/model/UsageStatisticsTest.java
Expand Up @@ -105,7 +105,9 @@ public void roundtrip() throws Exception {
List<JSONObject> plugins = sortPlugins((List<JSONObject>) o.get("plugins"));
Set<String> detached = new TreeSet<>();
for (ClassicPluginStrategy.DetachedPlugin p: ClassicPluginStrategy.getDetachedPlugins()) {
detached.add(p.getShortName());
if (p.getSplitWhen().isOlderThan(Jenkins.getVersion())) {
detached.add(p.getShortName());
}
}
Set<String> keys = new TreeSet<>();
keys.add("name");
Expand Down

0 comments on commit dff8e80

Please sign in to comment.