Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Oct 18, 2023
1 parent 6f5456d commit 61c429d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/model/ComputerSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void managePermissionCanConfigure() throws Exception {
assertEquals(HttpURLConnection.HTTP_OK, page.getWebResponse().getStatusCode());
responseContent = page.getWebResponse().getContentAsString();
// the "Node Monitoring" link in the app bar is visible
assertThat(responseContent, containsString("Node Monitoring"));
assertThat(responseContent, containsString("Configure Monitors"));
page = wc.goTo("computer/configure");
assertEquals(HttpURLConnection.HTTP_OK, page.getWebResponse().getStatusCode());
// and the save button is visible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public void parse() throws Exception {
@Issue("JENKINS-59383")
public void string() {
DiskSpace du = new DiskSpace("/tmp", 123 * 1024 * 1024);
du.setTotalSize(300 * 1024 * 1024);
du.setThreshold(200 * 1024 * 1024);
assertEquals("123.00 MiB left on /tmp.", du.toString());
assertEquals("123.00 MiB out of 300.00 MiB used on /tmp.", du.toString());
du.setTriggered(true);
assertEquals("Disk space is below threshold of 200.00 MiB. Only 123.00 MiB left on /tmp.", du.toString());
assertEquals("Disk space is below threshold of 200.00 MiB. Only 123.00 MiB out of 300.00 MiB left on /tmp.", du.toString());
}
}

0 comments on commit 61c429d

Please sign in to comment.