Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Sep 1, 2023
1 parent 9680241 commit 65ce750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/test/java/jenkins/model/NodesRestartTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class NodesRestartTest {
public JenkinsSessionRule s = new JenkinsSessionRule();

// The point of this implementation is to override readResolve so that Slave#readResolve doesn't get called.
public static class DummyDumbSlave extends Slave {
public DummyDumbSlave(@NonNull String name, String remoteFS, ComputerLauncher launcher) throws Descriptor.FormException, IOException {
public static class DummyAgent extends Slave {
public DummyAgent(@NonNull String name, String remoteFS, ComputerLauncher launcher) throws Descriptor.FormException, IOException {
super(name, remoteFS, launcher);
}

Expand All @@ -33,7 +33,7 @@ protected Object readResolve() {
public void checkNodeRestart() throws Throwable {
s.then(r -> {
assertThat(r.jenkins.getNodes(), hasSize(0));
var node = new DummyDumbSlave("my-node", "temp", r.createComputerLauncher(null));
var node = new DummyAgent("my-node", "temp", r.createComputerLauncher(null));
r.jenkins.addNode(node);
assertThat(r.jenkins.getNodes(), hasSize(1));
});
Expand Down

0 comments on commit 65ce750

Please sign in to comment.